How to run generated JSF tags ?

I am beginner in JSF. I would like execute JSF tags generated dynamically by XSLT, but in the JSP page,
these tags are not interpreted. Does anyone has the solution ? Thanks a lot.
Example below is only a simple test,
ResearchBean.java :
public String researchAction() {
    // Actually, htmlResponse is the output string after the XSLT transformation, and it contains JSF tags
    htmlResponse = "<h:outputText value=\"Text\"/>";
    return "response";
}response.xhtml :
<f:view xmlns:f="http://java.sun.com/jsf/core
xmlns:h="http://java.sun.com/jsf/html
<html>
#{researchBean.htmlResponse}
</html>
</f:view>In the page received by the browser, <h:outputText value="Text"/> isn't replaced by the html code.
Edited by: wondergarance on Jul 2, 2009 1:24 PM

The JSF tags are apparently generated after the FacesServlet has done its work. You in fact need to pass the generated output through the FacesServlet again. If you're using a servlet/filter to run XSLT, you need to run it before the FacesServlet kicks in. You can control the servlet/filter invocation order in the web.xml.

Similar Messages

  • How can run one JSF 1.1 application in Glassfish v2?

    Hello
    How can run one JSF 1.1 application in Glassfish v2?
    I need deploy one JSF 1.1 application in Glassfish v2. It's possible?
    Paulo

    in Glassfish v2 I have the messege error:
    java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
         at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:250)
         at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:106)
    [#|2007-08-14T10:49:16.438-0300|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=416049de-0564-4eb6-8d07-ac8f65f5f7fa;|ApplicationDispatcher[/lilya2] PWC1225: Allocate exception for servlet FacesServlet
    java.lang.RuntimeException: WEB5003: Exception in handleAfterEvent.
         at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:320)
    but in Tomcat 5.5 it work without problems.

  • How we can use jsf tags in included jsp enclosed in subview tags

    Hello everybody,
    I am developing web app by using jsf. I am including a jsp page "header.jsp" into another jsp page "main.jsp". The header.jsp page is enclosed in jsf subview tag on main.jsp page. The header.jsp contains some static html code and some jsf tags like "outputText". When i added tag library url in header.jsp then my app was not even not initiating and i was getting following exception
    ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
    16:22:16,890 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
    ....Now i removed jsf tag library url from included jsp "header.jsp" so now my app is running but only static html data is being displayed but the value in the jsf tag "outputText" is not being printed in the browser
    kindly help me. i would be very thankful....

    Your question has nothing to do with Sun Java System Directory Server.
    Please use the right forum(s).
    Thanks

  • How to run/generate a payment in f110

    Guys help me!! I have created a parameter in TCODE F110(AUTOMATIC PAYMENT TRANSACTIONS: STATUS )  and I need to run/generate it. The only message I got was "payment run has been carried out".
    I need to come up with a message like this "posting orders: 1 generated , 1 completed”. What should I do? many many tnx....
    Points will be rewarded to all..

    Salma,
    Have you run the payment by clicking on button "Pmnt Run"? First you need to enter correct Parameters then you have to run the Proposal. After Proposal has been run, view the Proposal, if it comes up with a green indicator, you can then run the "Payment" by clicking on "Pmnt Run". But remember you first need open invoices for the vendor you're trying to pay.
    Can you explain in detail what exactly you did in F110?
    Cheers,
    Sougata.

  • How to run and JSF page from Bea Weblogic 8.1

    Hi, I am new to JSF . Can anybody help me that how can i access a JSF page from Bea Weblogic 8.1. How can deploy. What libraries and files are needed and where to put these required .jar or library files. I just wrote a single page and now i am not able to run it . Any help would be highly appreciated.I am looking forward for your kind replies.Thank you.
    Regards,
    Waqar

    You need to package your application into the standard .war format. Make sure jsf-api.jar and jsf-impl.jar are placed in WEB-INF/lib, your faces-config.xml is in WEB-INF, and your tld files are defined appropriately. Once you have your .war file, deploy it to your servers applications directory or use the console for deployment.
    You should not have any problems if everything is packaged correctly. I am successfully using WebLogic Server 8.1 with my JSF-based web app.

  • How to run order-jsf-jpa-example.zip in JDeveloper?

    What is the easiest way to make order-jsf-jpa-example.zip from the link http://www.oracle.com/technology/products/ias/toplink/jpa/examples-index.html to run in JDeveloper?
    Step by Step please.
    Thanks
    Ming Man

    You can use the JDeveloper "project from existing source" to create a new project that is based on this code.
    You can then use the built in Ant support to run the build file.

  • How to run generated script

    Dear forum members, i have something like that:
    set serveroutput on;
    set feedback off;
    set linesize 255
    define torun          = "/home/user/run.sql" --THIS I WANT EXECUTE
    !rm &torun
    spool &torun;
    declare
    --some variables
    begin
         --for example
    dbms_output.put_line('select * from v$session');
    end;
    @&torun --- THIS DOES NOT WORK :'-(
    spool off;
    exit;
    why?
    Message was edited by:
    taurus

    Try as follows (and look for differences with yours :-)) :
    [oracle@test work]$ cat test.sql
    set serveroutput on;
    set feedback off;
    set linesize 255
    define torun = "run.sql" --THIS I WANT EXECUTE
    !rm &torun
    spool &torun;
    declare
    --some variables
    begin
    --for example
    dbms_output.put_line('select * from v$session;');
    end;
    spool off;
    @&torun --- THIS DOES NOT WORK :'-(
    exit
    [oracle@test work]$ sqlplus -s test/test @test
    select * from v$session;
    SADDR                SID         SERIAL#          AUDSID PADDR              USER# USERNAME                               COMMAND         OWNERID TADDR    LOCKWAIT STATUS  SERVER       SCHEMA# SCHEMANAME
    OSUSER                         PROCESS      MACHINE                                                          TERMINAL                       PROGRAM     TYPE        SQL_ADDR  SQL_HASH_VALUE SQL_ID        SQL_CHILD_NUMBER
    PREV_SQL PREV_HASH_VALUE PREV_SQL_ID   PREV_CHILD_NUMBER PLSQL_ENTRY_OBJECT_ID PLSQL_ENTRY_SUBPROGRAM_ID PLSQL_OBJECT_ID PLSQL_SUBPROGRAM_ID MODULE  MODULE_HASH ACTION                                ACTION_HASH
    CLIENT_INFO                                                      FIXED_TABLE_SEQUENCE   ROW_WAIT_OBJ#  ROW_WAIT_FILE# ROW_WAIT_BLOCK#   ROW_WAIT_ROW# LOGON_TIM    LAST_CALL_ET PDM FAILOVER_TYPE FAILOVER_M FAI RESOURCE_CONSUMER_GROUP     PDML_STA
    PDDL_STA PQ_STATU CURRENT_QUEUE_DURATION CLIENT_IDENTIFIER                                                BLOCKING_SE BLOCKING_INSTANCE BLOCKING_SESSION            SEQ#  EVENT# EVENT
    P1TEXT                                                                        P1 P1RAW    P2TEXT                                                                        P2 P2RAW    P3TEXT
                 P3 P3RAW      WAIT_CLASS_ID     WAIT_CLASS# WAIT_CLASS                                                             WAIT_TIME SECONDS_IN_WAIT STATE    SERVICE_NAME                                                SQL_TRAC SQL_T
    SQL_T
    2F2DEEB0             120               1               0 2F22187C               0                                              0      2147483644                   ACTIVE  DEDICATED                  0 SYS
    oracle                         4577         test.mycorpdomain.com                                            UNKNOWN                        [email protected] (q001)         BACKGROUND 00                     0                              0
    00                     0                               0    0                                                 0
                                                                                       30              -1               0               0               0 07-MAY-07 1168 NO  NONE     NONE       NO                                   DISABLED
    ENABLED  ENABLED                       0                                                                  UNKNOWN                                                      1     272 Streams AQ: qmn slave idle wait
                                                                                   0 00                                                                                      0 00
                  0 00            2723168908               6 Idle                                                                           0            1168 WAITING    SYS$BACKGROUND                                                      DISABLED FALSE
    FALSE
    2F2E1450             122             177               0 2F21ABD4               0                                              0      2147483644                   ACTIVE  DEDICATED                  0 SYS
    oracle                         4951         test.mycorpdomain.com                                            UNKNOWN                        [email protected] (J000)         USER       00                     0                              0
    00                     0                               0    0                                                 0
                                                                                     1251              -1               0               0               0 07-MAY-07   17 NO  NONE     NONE       NO                                   DISABLED
    ENABLED  ENABLED                       0                                                                  UNKNOWN                                                      1     229 jobq slave wait
                                                                                   0 00                                                                                      0 00
                  0 00            2723168908               6 Idle                                                                           0              17 WAITING    SYS$USERS                                                   DISABLED FALSE
    FALSE
    2F2E39F0             124               1               0 2F220D0C               0                                              0      2147483644                   ACTIVE  DEDICATED                  0 SYS
    oracle                         4573         test.mycorpdomain.com                                            UNKNOWN                        [email protected] (q000)         BACKGROUND 2CB5DF4C      3393152264 4gd6b1r53yt88                0
    00                     0                               0    0                                                 0
                                                                                       30              -1               0               0               0 07-MAY-07 1168 NO  NONE     NONE       NO                                   DISABLED
    ENABLED  ENABLED                       0                                                                  NO HOLDER                                                    1     267 Streams AQ: waiting for time management or cleanup tasks
                                                                                   0 00                                                                                      0 00
                  0 00            2723168908               6 Idle                                                                           0            1168 WAITING    SYS$BACKGROUND                                                      DISABLED FALSE
    FALSE
    ..........................

  • Running Cold Fusion Tag in Java

    Hi,
              does anybody know how to run Cold Fusion Tags in Tomcat. I know there's a
              products called Blue Dragon that implements some of the CF tags, however is
              there an open source alternative?
              Thanks,
              The Poor Programmer
              

    Hi Kok,
              Try the Tomcat or CF newsgroups ... you'll probably have better luck there.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "Kok Fong" <[email protected]> wrote in message
              news:3e51acf2$[email protected]..
              > Hi,
              >
              > does anybody know how to run Cold Fusion Tags in Tomcat. I know there's a
              > products called Blue Dragon that implements some of the CF tags, however
              is
              > there an open source alternative?
              >
              > Thanks,
              >
              > The Poor Programmer
              >
              >
              

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Is it necessary to add? If so, how do I add H Tags to iweb.

    I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Are they necessary to add?  Why would one add these tags and how do I add H Tags to iweb? And are there examples to look at? I am slowly learning about simple web design and assumed that iweb was stand alone without having to write code. Is this one of the reasons iweb is no longer supported? Thanks for looking at this!

    A simple text page like this:
    Heading
        sub heading
              text paragraph ....
    Is traditionally represented by html tags like:
    <h1>Heading</h1>
         <h2>sub heading</h2>
              <p>text paragraph ... </p>
    I would guess that the use of h1-h6 tags helps search engines to understand the structure of a page as the tags imply a certain structure.
    This can be compared to more generic tags like <div> that could represent any kind of content - and may be what iWeb uses (you'll have to check yourself).
    I would generally recommend that you use some kind of up to date blog/site building tool, perhaps Wordpress or Squarespace (I haven't used either one myself) that support current web technologies - this should reduce your SEO issues and make it easier to properly support mobile/tablet users.

  • How to run business services as dynamically generated Subject?

    Hi experts,
    I have configured a business service which puts a message on a JMS queue in a weblogic container other than ALSB's weblogic container.The queue is configured with a security policy [say a 'MessagePublisher' role], so that only users with role of 'MessagePublisher' can send message to that queue.
    We have different partners SFTPing messages(xml/csv/excel format) to us, of which only few of them would have a role of 'Message Publisher'. I have configured a proxy to read these files from a directory, however sender of some of these messages may not have a role of 'Message Publisher'.
    I am expecting the senders' credentials to be appended to the message by some process on SFTP server. How can I generate a 'Subject' within a proxy using these credentials and do a run as on the business service, so that only users with the role of 'MessagePublisher' succeed in sending message to the queue.
    I probably can configure my business service to run as a user account who has the relevant role, but I do not want to hard code the UserAccount within business service and obtain a user account using sender's credentials.
    Is ALSB not supposed to be used as suggested above?Would highly appreciate any thoughts on this..
    Regards.

    The JMS business service can use only a static service account. I think this has an undesirable implication that the business service cannot be invoked as a dynamically generated subject.
    Only way I know of to enforce role based access control in this scenario is to have an extra proxy service in front of JMS business service. Enforce access control over this extra proxy service.
    To invoke this extra proxy service with credentials embedded embedded in the message, I think you need to look at "custom authentication" option under message level security. I am not sure how this would work. May be someone here can explain that.

  • Jsf 1s phase of life cycle how knows ths components of the jsp with jsf tag

    i wish to know how faces servlet knows the jsp s view components while creaTI NG component tree at first request to input jsp which may have jsf tags.in the first phase faces servlet doesnot know input jsp with jsf tags what componnets it has. it is actually atthe response send or forward time which is the final phase when the tag ge executed and output is sent to client.i did understandin jsf life cycle in 1 st phase component tree is created at first request in 1 st phase .

    Hi,
    though a FacesContext holds the values used by a request, it doesn't mean it lives for as long as the request. The best explanation I found is from the JavaDocs
    release
    public abstract void release()
    +Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown.+
    The implementation must call setCurrentInstance(javax.faces.context.FacesContext) passing null to remove the association between this thread and this dead FacesContext instance.
    Throws:
    java.lang.IllegalStateException - if this method is called after this instance has been released
    Frank

  • How to run the basic list in background to generate secondary.

    How to run the basic list in background to generate secondary and spool for the secondary.Please note that Basic list will run in foreground.

    Problem solved.

  • How to run the code generator

    I urgently need to know how to run the code generator using creator. Can anyone assist? I cant find any tips in the forums.

    I am following the procedure to create a new custom component (or extend an existing component) available at http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/writing_custom_components.html.
    Part of the procedure says: you need to use the JSC to run the code generator based on sun-faces-config.xml metadata.

  • How to run tag library applications

    HI,
    How can i run a jsp tag library application.I have written the code and i did the packaging deployed in the tomcat.I tried to run the application.It is saying some jar file is not there.What should i do.

    Let's say the name of the stick is "PenDrive"...
    1. copy the the itunes media folder to the pen drive. The iTunes media folder is the one that contains the sub-folders of Music, mobile Applications etc. let's say your iTunes media folder is called "iTunes Media"
    2. open iTunes. On the menu, click "iTunes", "Preferences...". Click the "Advanced" tab. Change the iTunes library location in the field at the top (I think you can browse for it). When you have it set, it should read "/Volumes/PenDrive/iTunes Media".
    3. The other iTunes files, like the database, should stay on your Macintosh HD.
    4. Once you do this, ALWAYS make sure the pen drive is mounted BEFORE you start iTunes, otherwise it will revert to the media folder on Macintosh HD and you will have to do step 2 again.

Maybe you are looking for

  • Why is my iPod stuck on the "Connect to iTunes" page?

    Okay this is what happened. I got onto itunes with my ipod touch, and it said that I had an update available for my ipod. I clicked install then update, but then windows pops ups and says woah we have not tested this installment. It may do permanent

  • Same rowid but diffrent rows !!!

    Hello, I have seen something unbelievable in oracle today . Two different rows & same rowid !!!!!! I have fired one select statement on gatepass_body table & retrieved a record with where vrno=782; select b.rowid,b.* from gatepass_body b Where b.Vrno

  • Release date for commercial version of Solaris 10 (x86)?

    Hi Does anybody know when the commercial version of Solaris 10 (x86) will be released. This is rather urgent as the Oracle certification depends on this release date. thanks

  • Computer2comp. - cant make it work

    I have a G5, dual 1.8.. I installed an airport extreme card the other night when I bought a new laptop, a macbook.. My macbook picks up networks from my neighbors, hotspots and other places.. BUT NOT from my G5.. On my G5 I went to sharing>internet a

  • Drag to resize spacing?

    Say I have a number of objects selected, how can I drag to resize the spacing between them, but without resizing the objects? By default resizing a number of selected objects does resize the spacing but also the objects themselves. Thanks