Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8857565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:37:14+00:00 2026-06-14T14:37:14+00:00

I simply want to output this using PrimeFaces Mobile: <body onload=windowOnLoad();> This is what

  • 0

I simply want to output this using PrimeFaces Mobile:

<body onload="windowOnLoad();">

This is what the page looks like:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:pm="http://primefaces.org/mobile" contentType="text/html"
    renderKitId="PRIMEFACES_MOBILE">

    <pm:page title="Mobile Login">
    <pm:header>
        <script language="JavaScript" type="text/javascript">
function bodyOnLoad() {
    alert("in bodyOnLoad");
}

</script>
</pm:header>

        <pm:view id="viewForm">
            <pm:content onload="bodyOnLoad();">

Test

            </pm:content>
        </pm:view>
    </pm:page>
</f:view>

I’ve tried putting it on the pm:page, pm:view, pm:content. None seem to work? I am sure I am missing something easy.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:37:15+00:00Added an answer on June 14, 2026 at 2:37 pm

    This turned into more of a Javascript solution:

    <pm:header>
            <script language="JavaScript" type="text/javascript">
    function bodyOnLoad() {
        alert("in bodyOnLoad");
    }
    window.onload = bodyOnLoad;
    
    </script>
    </pm:header>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have an XML file which looks like this: <?xml version=1.0 encoding=UTF-8?> <Project
I`m using this routine: $dom = new DomDocument(); @$dom->loadHTML('<?xml encoding=UTF-8>' . $row['body']); $xpath =
I'm working with various XML inputs and outputs and simply want to grab the
I simply want to popup an Alertbox in AS3. I am using Flashdevelop and
I'm trying to display an alert using Primefaces Dialog component in my JSF page.
Say I want to output a huge set of search results, as XML, into
I'm using MinGW on Windows 7. Put simply, I want to create a Hello
I want to do something like this in my geometry shader: uniform int maxOutputVert;
Alright, Currently, if given a string like such: A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5,(F:0.6,G:0.7)H:0.8 I am using this: child
I have an XML stream I want to parse using SAX. What I actually

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.