JSF with TILES and HTML-Code

Hello!
I have a pure JSP-project using tiles. Now I want to migrate to JSF and find some problems.
When I use my existing layout and include the different JSPs I have no problem as long I have a single f:view in every jsp file is used. When I try to define f:view and a h:form including different files and in each file JSF componets where used I got a very bad result. Additiotal I have to say, that I try to keep my formatting with HTML tags existing.
The effect is, that all JSF componets were rendered at the beginning of the jsp file and than be included into the layout.
Have I use a special order of f:view, f:subview, h:form, ....
Alternative I could make a complete reprogramming of the JSP's, not my favourit, but than I need the possibility to set single formats for each <td> in a table and this seems not to be possible with h:panelGrid.
Havy anyone an idea?
Thanks for your help!

Read about facelets as a replacement for tiles in jsf.

Similar Messages

  • Can I include both CSS and HTML codes in one Open HTML Editor.

    Somehow Cell phones are not properly reading css codes. Is there any way to include both CSS and HTML codes in one Open HTML Editor?

    Hammad, their code is fairly mobile friendly.  Per my other discussion with you ( http://topliners.eloqua.com/thread/8532 ), Eloqua's code is responsive for the most part.  Most of their issues lie with the styling of the email where you will get different fonts and different sized fonts throughout the email and some other minor display issues.
    What you are trying to accomplish is extremely difficult to do because you do not have the access to the HTML to better control how the responsive template works which is why the Eloqua templates (and most ESP templates) stick to the more basic side of emails.
    If you want to use Eloqua's WYSIWYG to make their responsive email you can do so, but I would recommend deleting all their body text before editing anything because of the inconsistencies in their code.  Otherwise, I think you would be better off coding the emails outside of Eloqua using a 3rd party editor whether it's something more robust like Dreamweaver or Coda, or whether you feel comfortable working in a more text environment with programs like Notepad++ or Brackets.
    At the end of the day remember you are paying Eloqua for these and if you choose to stick with the WYSIWYG and you are not getting the results you expect you need to tell Eloqua through your support channels.

  • JSF Actions and ActionListeners with Tiles and forms

    I�m having a problem trying to use the Tiles functionality in Struts 1.1 with JSF and was wondering if anyone could help me.
    I have defined a very simple header, menu, content Tile that doesn�t involve nesting of tiles (ExampleTile_content1Level.jsp).
    I have 3 JSP pages, the first testHarness.jsp is NOT built using Tiles and is just used to load some test data into a session scoped bean using an actionListener and then forward to a Tile generated page (ExampleTile3.jsp) using a hard-coded action �applicationSummary� when a commandLink is pressed. This works fine for both the action and actionListener.
    ExampleTile3.jsp contains another commandLink that is meant to forward to another tile ExampleTile2.jsp. This also works until I try to add the <h:form> � </h:form> tag around the outside of the <h:panelGrid> tags in ExampleContent1.jsp when the action and actionListener then fail to fire and I get an �Error on Page� message in Explorer the detail of which says �Error �com_sun_rave_web_ui_appbase_renderer_CommandLinkRendererer� is null or not an object�.
    However I need a form so that I can bind UI controls to data from the bean stored in the session scope. This is only a problem when I use Tiles to define the pages. Does anyone know what I am doing wrong?
    Any help would be much appreciated.
    Tiles.xml
       <definition name="example3" path="/pages/exampleTile_content1Level.jsp" >
              <put name="headerClass" value="someStyle"/>
              <put name="menuClass" value="someStyle"/>
              <put name="contentClass" value="someStyle"/>
              <put name="header-title" value="/pages/exampleHeader.jsp" />
              <put name="menu" value="/pages/exampleMenu.jsp" />
              <put name="content" value="/pages/exampleContent1.jsp" />
       </definition>
       <definition name="example2" path="/pages/exampleTile_content1Level.jsp" >
              <put name="headerClass" value="someStyle"/>
              <put name="menuClass" value="someStyle"/>
              <put name="contentClass" value="someStyle"/>
              <put name="header" value="/pages/exampleHeader.jsp" />
              <put name="menu" value="/pages/exampleHeader.jsp" />
              <put name="content" value="/pages/exampleContent2.jsp" />
       </definition>ExampleTile3.jsp
    <f:view>
         <h:form>
              <tiles:insert definition="example3" flush="false" />
         </h:form>
    </f:view> ExampleTile2.jsp
    <f:view>
         <h:form>
              <tiles:insert definition="example2" flush="false" />
         </h:form>
    </f:view> Faces-config.xml
    <navigation-rule>
        <from-view-id>/pages/testHarness.jsp</from-view-id>
           <navigation-case>
                <from-outcome>applicationSummary</from-outcome>
                <to-view-id>/pages/exampleTile3.jsp</to-view-id>
              <redirect/>
           </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/pages/exampleTile3.jsp</from-view-id>
           <navigation-case>
                <from-outcome>nextPage</from-outcome>
                <to-view-id>/pages/exampleTile2.jsp</to-view-id>
                <redirect/>
           </navigation-case>
    </navigation-rule> ExampleTile_content1Level.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" >
         <f:subview id="header-title">
              <tiles:insert name="header-title" flush="false" />
         </f:subview>
         <f:subview id="menu">
              <tiles:insert name="menu" flush="false" />
         </f:subview>
         <f:subview id="content">
              <tiles:insert name="content" flush="false" />
         </f:subview>
    </h:panelGrid> ExampleHeader.jsp / ExampleMenu.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" columnClasses="someSyle">
         <h:outputFormat value="This is the {0}.">
              <f:param value="Header / Menu as appropriate "/>         
         </h:outputFormat>
    </h:panelGrid> ExampleContent1.jsp
    <tiles:importAttribute scope="request"/>
    <h:form>     <----- Fails with this tag included but works without it.
    <h:panelGrid columns="1" >
              <h:outputFormat value="This is the {0}.">
                   <f:param value="Content on the FIRST page"/>
              </h:outputFormat>
              <h:commandLink action="nextPage" immediate="false">
                   <h:outputText value="Click to go to next page"/>
              </h:commandLink>
    </h:panelGrid>
    </h:form> ExampleContent2.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" >
         <h:outputFormat value="This is the {0}.">
              <f:param value="Content on the SECOND page"/>
         </h:outputFormat>
    </h:panelGrid>

    jezzica85 wrote:
    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )
    Well, if you want to support that then you are just going to have to do suffer through it, the only shortcut I can recommend is that your method(action, listener) and method(listener, action) are the same so you only have to implement 1 and just use the other as a entry point to call the one you wish to contain the code.

  • How can a component generate both stylesheet and HTML code?

    Hi All,
    I've the following problem. My team is working on several "complex" components which provide a rich client-side behavior (via javascript and css). The components are in charge of generating the following:
    + Stylesheet (linked or inline)
    + Javascript via external libraries
    + HTML code
    The problem comes from the fact that the CSS must be generated between the <HEAD> and </HEAD> tags (according to the HTML spec). Obviously, the rest of the code (javascript and HTML) is generated somewhere else on the page, and this is the problem.
    Any ideas on how to solve this?
    I've been thinking about a pre-process phase that would call every components to render the Css, but it requires substancial changes to JSF... Any help is greatly appreciated
    Thanks in advance,
    Stephane
    http://www.otrix.com

    Thanks for the reply but in my case I absolutely need to generate an addhoc css such as:
    <style type="css/....>
    .name 1 {position: absolute; visibility: hidden... }
    .name 1 {padding: 0 0 0 0;}
    </style>
    What I do is that I spit-out the css first and then generate the HTML. It works fine in IE but I really wanted to be conform to the HTML spec which says that a STYLE tag should be located in the <HEAD> tag. I guess it's probably too much work just to be compliant with the spec....
    Thanks again,
    Stephane

  • IWeb 09 - Bug Report with album and html fragment

    I create an album with iPhoto and I insert it in a existent album page.
    Publish the site in a local directory.
    Navigate the page from the local directory and the page works.
    Publish the site using Cyberduck FTP and navigate the page from the www
    Results, the album doesn't work, only text in page.
    Here the link of the page that I create with iWeb08 (work)
    http://www.newsisters.it/ita/Album2009/Album2009.html
    and here link of the page that I create with iWeb09 (doesn't work)
    http://www.newsisters.it/ita/Album2009_error/Album2009.html
    in this page at the left bottom I insert an HTML code for Counter Statistic from Shinystat,
    it works using iWeb08 and doesn't work using iWeb09.
    The code is
    <!-- Inizio Codice Shinystat -->
    <script type="text/javascript" language="JavaScript" src="http://codice.shinystat.com/cgi-bin/getcod.cgi?USER=newsisters"></script>
    <noscript>
    </noscript>
    <!-- Fine Codice Shinystat -->
    Help me Please!
    Thanks a lot

    See: Some songs don't don't show under artist on my iPod.
    From what I understand, once you add a second album name for that artist even for a single song, ALL the rest of the songs should now show up under that artist, even those without album names.

  • [JSF 2.0] and HTML 5? How things are planned?

    Hello,
    How far is JSF 2.0 from handling HTML 5?
    Of course, it surely can't handle it today, but maybe next year some of us will find the need of starting their new web site with this new HTML version.
    How is it planned? Will HTML 5 be a standard feature of JSF 2 (or JSF 3?) or will it require the download of a special project: an additional component having its own lifecycle?
    How things are roughly planned?
    Regards,
    Grunt.

    I predict it will be implemented as a new component library by someone, but on the server side it will probably retain the same Faces servlet (i.e. same lifecycle) making extensive use of the AJAX capabilities. What will be interesting to see is if any new server side interfaces intended to be implemented by UIComponents will show up and what they would look like.
    Of course one thing very nice to have is automatic detection and backwards compatibility with non HTML-5 browsers. I predict also that will be there but not work very well.

  • JSF with tiles

    I am trying to do this in my tiles definition page (2 JSP pages for every single screen, one containing the following code and the other containing the actual body)
    <tiles:insert definition="sfh.MainLayout">
         <tiles:put name="page.title" beanName="pc_NewModCategoryBody"
              beanProperty="pageTitle" beanScope="request"/>
         <tiles:put name="page.body" value="/pages/category/NewModCategoryBody.jsp" />
    </tiles:insert>
    But, tiles is not able to find pc_NewModCategoryBody, as JSF did not instantiate the bean yet :-(
    Is there a facesContext.loadBean("pc_NewModCategoryBody") or some method ?

    Hi here is an working example of Tiles and JSF
    http://www.apache.org/~matzew/myfacesTilesSample.war
    Btw. MyFaces (http://incubator.apache.org/myfaces/) contains an extra-component for integrating Tiles
    (TilesViewHandler)
    HTH,
    Matthias

  • E-mail's and HTML code

    Is there a way to set up the curve and the world edition to display HTML in the e-mail's instead of displaying the raw html code?

    hello,
    that is not part of a configuration. You have two ways :
    1) you install another email application that does that. There are two, I forgot their names.
    2) you can upgrade the OS of your Blackberry to 4.3 or 4.5. read this :
    http://supportforums.blackberry.com/rim/board/mess​age?board.id=8300&thread.id=6807
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • VAT registration number in combination with country and company code

    Hi,
    Is there configuration where we can define the VAT registration number with combination of country and company code.
    thanx in advance

    Hi,
    Thanx for the reply.bt the issue is like we have a condition type zvat where condition table have the following fields departure country and destination country,The country of our company code is GB and we maintain a record for condition type zvat i.e GB (departure country) to GB (destination country) 17.5%.While creating a contract if vat is applicable we told user to maintain country GB in both the fieds i.e tax departure country and tax destination country in billing tab at header level of the contract .It is working fine for other company where  company code country is different then GB.But for this where company code  country is GB.An error occurs i.e.There is no vat registration number fot this comapny code XXXX for  country GB.
    Now how should i go about it?

  • Imageready and HTML code?

    Hi,
    I'd like to add Metadata to my site that I created in Photoshop CS and Imageready. Is there a way to edit the HTML code in Imageready?
    I was able to add the tags in another ftp applicaton, but this would be easier.
    Also, is this necessary: 
    Imageready added it.
    Thanks,
    Allan

    If I remember correctly, you can't go "under the hood" in ImageReady because the HTML is generated upon export.

  • Need help with in-line HTML code

    I am trying to write some in-line HTML code to change the background color to blue for Exception-Bad.  Here is my code
    I am trying to use in-line HTML code in WAD to change the background color for Exceptions-Bad to blue.  This is not working.  I really need to get this to work so if someone could tell what is wrong with my code, I would really appreciate the help.
                <style type="text/css" > SAPBEXexcBad7 {background-color: blue}; .SAPBEXexcBad8 {background-color: blue}; SAPBEXexcBad9 {background-color: blue} </style>
    Thanks.
    Ryan

    Hi Boater,
    HTML code will also come like this also
    BODY BACKGROUND="image.jpg" BGCOLOR="#FFFFFF" TEXT="#000000"
    let this one also
    Regards
    Ashwin

  • Firefox 2.0 - Problems with Webdynpro and HTML iviews

    Hello all,
    We have implemented the SAP Netweaver portal 7.0 SP 10. Everything works fine on IE 6.0 and 7.0. When we tested it on Firefox 2.0, we encountered the following problems:
    1. The links on the detailed navigation area are missing
    2. Web Dynpro applications dont work very well. Eg: Clicking on "Next" button does not take you to the next view, OVS does not work etc.
    3. SAP transaction iViews(HTML) don't show up at all.
    Although the <a href="https://websmp108.sap-ag.de/~sapidb/011000358700001936242005E#391,7,SAP NetWeaver 7.0 (2004s) Browser Support                                 For End Users and Admin Functionality">PAM</a> indicates that Firefox 2.0 is supported for Webdynpro and HTML iviews, I am not sure why this is happening. Can someone help?
    Thanks and Regards,
    Reena

    Adobe are working on updating their add-on for Firefox 4 - http://kb2.adobe.com/cps/896/cpsid_89622.html
    McAfee have released a version of the Site Advisor for Firefox 4, but this add-on has caused problems for some people such as not being able to permanently hide the add-ons bar and issues with the back button not consistently working.

  • Need help with API and sample code for checking a user's rights on a folder

    Hi All,
    I am working on an UCM integration where user supplies a folderpath (ucm folders), and a file is later uploaded to this location.
    Since a user can provide a folderpath where he has only Read Access or no access at all, we are trying to work out a way to pre-check his permissions on the folder.
    Since we have Entity Security enabled, we have 5 security fields to rely on Account, Security Group, User Access List, Group Access List, Role Access List.
    Writing custom code for this security check is second on our agenda.
    Firstly, we wish to know the API and sample code that typically performs this Security Check in UCM.
    We could find intradoc.shared.SecurityUtils which has methods to check security on SGroup and Account, but we couldn't find anything for:
    1) Overall security check
    2) ACL security check on top of sgroup and account security check

    Any ideas anyone?!
    I am looking forward to some pointers here. :(

  • An issue with DigitalColor Meter and HTML codes

    First off, I apologize if this is in the wrong area; it seemed to be the one most closely related i could find.
    I've been using the Mac's DigitalColor Meter program for ages now to grab color codes for my web design work. Until recently, it was fine; find the color you need, shift-command copy it, then paste it into the HTML source code as appropriate. Simple as pie.
    Roughly a month or two ago, however, I realized I was having issue with it. I could still copy-and-paste the hex code as normal, but suddenly it wasn't showing up correctly when viewed in soem browser, but fine in others. After a lot of hair-wringing and experimentation, I discovered that (presumably) something had changed with the way DCM copied/pasted its hex code.
    When I paste the code, it is inserting invisible characters after each pair of letters. It took me forever just to figure this out, as they were, well, invisible. I couldn't see them in my text editor, but when I used the arrow keys to move along the hex code as pasted, it would pause appropriately each time I got to those points. A friend of mine looked at the code in his (PC-based) text editor, and clearly saw the extra characters, altho it doesn't show up in any of my mac-based ones.
    What he saw: "#ab cd ef "
    What I see: "#abcdef"
    This is, as best I can tell, a recent development, and I'm not sure what prompted the change? Since different browser are interpreting the 'invisible' characters differently, it's causing me to have to manually type in the hex code after finding it in DCM to ensure no extra characters sneak in. Not a big deal, but annoying nonetheless.
    Any ideas out there as to why this has started happening? Any way to correct it? DCM was a staple of my web-working tools, and it's disheartening to have to handle things in the current way.

    Unfortunately it seems that this issue is a "feature not a bug". In tiger it used to work fine: you could paste into photoshop or a css file and it would work. It got changed in Leopard because Apple engineering decided that it was better coding practice to treat each hex value as "word" thus delineating it with these infuriating invisible characters. If you copy and paste into BBEdit on leopard and tiger machines you will see the difference.
    There might be a way to make an automator action that can strip these characters out when pasting. Another option includes using the less graceful (though you can manipulate the colours further after selecting) built-in color chooser and the HexColorPicker extension to it (google for download). You can write a script and save as an application to run the apple colour chooser as a stand alone.
    Open script editor and type: choose color
    Save as app, add nice icon and that's it.
    Xscope looks a bit overboard for my taste, plus its mo' money! Better invested into Pathfinder or something.

  • Problem with CSS and HTML

    I don't understand what is wrong but I don't see the styles when I preview my html in chrome.
    Here's my CSS
    @charset "UTF-8";
    /* CSS Document */
    html {
              min-width: 768px;
    body {
              font-size: 100%;
              font-family: Arial, Helvetica, sans-serif;
              line-height: 1.5rem;
    .wrapper {}
    img {
              width: 100%; /*All images will be 100% the size of their parent */
    .baseline {
              background-image: url(../images/baseline.svg);
    strong {
              font-weight: bold;
    em {
              font-style: italic;
    /* ----------------------------------------------------------------------------------------- ------------- Masthead */
    .masthead {
              height: 6rem;
              background-color: rgba(51,153,255,1);
              margin-bottom: 1,5rem;
    h1 {
              font-size: 1.5rem;
              color: #9F6;
              position: absolute;
              margin: 2.25rem 0 0 4%;
    /*---------------------------------------------------------------------------------------- --------------------article --*/
    article {
              padding: 0 4% 1.5rem;
    .headline {
              height: 4.5rem;
              margin-bottom: 1.5rem;
              background-colour: rgba(0,0,0,.15)
    h2 {
              font-family:Georgia,"Times New Roman", Times, serif;
              font-size: 2.25rem;
              position: absolute;
              margin: 1.5rem 2% 0;
    .placeholder {
              width: 20%;
              flow: left;
              margin: 0 2.5% 1.5rem 0;
    p {
              margin-bottom: 1.5rem;
    .footnote {
              height: 4.5rem;
              background-color: rgba(0,0,0,.15)
    .footnote p {
              font-size: .875rem;
              position: absolute;
              margin: 1.5rem 2% 0;
    /*---------------------------------------------------------------------------------------- -------------------- Bottom --*/
    .Bottom {
              height: 15rem;
              background-color: rgba(51,153,255,1);
    .bottom p {
              font-sizes: .875rem;
              color; #FFF;
              position:absolute;
              margin: 1.5rem 4%
    Here's my HTML
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Box Model Tutorial</title>
    <link href="box-model/reset.css" rel="stylesheet">
    <link href="box-model/general.css" rel="stylesheet">
    </head>
    <body class="baseline">
    <!-------------------------------------------------------------------------- Masthead -->  
                      <header class="masthead baseline"> <!-- A group of introductory or navigational aids -->
                                    <h1>Victoria</h1>
    <!-------------------------------------------------------------------------- Masthead -->
               <div class="wrapper">
                             <article>
                              <header class="headline">
                                        <h2>Tourism British-Columbia</h2>
                              </header>
                                   <img src="box-model/images/images/British_Columbia_Legislative_Building,_Victoria,_BC_Wallpape r_2c8nm-1.jpg" alt="box-model/images/images/British_Columbia_Legislative_Building,_Victoria,_BC_Wallpape r_2c8nm-1.jpg">
                                    <!-- Don't Forget the alt -->
                                    <p>The capital city of British Columbia, Victoria boasts many historic buildings and some of the most fascinating museums in Western Canada. The city benefits from one of Canada's mildest climates, which allows its residents to pursue outdoor pleasures all year round.
    Victoria enjoys some of the country's most exhilarating scenery: there's an ocean or mountain vista around every corner, while the city's flower gardens are famous the world over. Whether your taste runs to golfing, hiking, biking and fishing or you're more the shopping, dining and theatre type, there are no end of delights for you and your family in Victoria – the city was included in the Top 10 Family Vacations in Canada in the TripAdvisor 2011 Travelers' Choice awards.
    Established in 1843 by James Douglas as a fort for the Hudson's Bay Company, Victoria's British ancestry is apparent in the double-decker buses, horse-drawn carriages, formal gardens, and tearooms. The city is now a cosmopolitan centre with a lively entertainment scene and a wonderful array of attractions.</p>
                   <footer class="footnote">
                                         <p> Article Footer (Related Articles, Footnotes, Authors Bio, etc.) </p>
                                     </footer>
                          </article>
                           </div> <!-- Wrapper Close -->
    <!---------------------------------------------------------------------------------------- -------------Bottom -->
        <footer class="bottom">
                 <p>Main Footer (Copyright, related Links, Legal, privacy, logo, etc.)</p>
        </footer>
    </body>
    </html>

    Lines 6 & 7 of your HTML file (exercise-boxmodel.html), change this:
    <link href="box-model/reset.css" rel="stylesheet">
    <link href="box-model/general.css" rel="stylesheet">
    to this:
    <link href="reset.css" rel="stylesheet">
    <link href="general.css" rel="stylesheet">
    Your CSS files are in the same folder as your .html file. But your original linkage shows that they're within a sub-folder called 'box-model'. That link was returning a 404 Not found error. Hence, the browser was unable to load your CSS files.
    Replace the code and you should be able to view it.

Maybe you are looking for

  • Setting a Default Value in SQL Query Report

    Hello: We are using a SQL Query Report to provide a mass update to a table. We are using the apex.collection and having it display a number of records in a SQL Query Report for mass update. We have 14 columns in the report, for which the first 11 are

  • Performance and Memory Problems on OSX

    Firefox seems to have some sort of memory leak. Even once I remove all the add-ons, and no matter which web pages, after about a day, Firefox is slow and I have to restart the browser. When using the diagnostics within Mac OSX, Firefox is consuming t

  • Which wireless adaptor for my macpro?

    Hey everyone. Can someone please advise me on the best wireless card (usb/pci) to use for my macpro, details of which are - Quad 2.0 gig 10.4.10v1.1 3gigs ram Can't think of any other info you would need really. Another thing, and perhaps this might

  • Regarding open items in credit management

    Dear friends My query is that is it possible to restrict credit management for credit and debit open items? See i am using oldest open item blocking in my scenario. Now credit and debit amounts are both considered as open item for credit management.

  • Where is my imported library. I cannot find songs from my cds.

    I have signed up for the Cloud and Imatch.  As soon as I did, my own library disappeared and my I am attempting to find my own songs off my cds or else re-import them, which literally will take weeks. Where are these songs hiding?