How to rotate a dataTable in jsf?

Hello,
I need to display a list of products in jsf "vertically" - so every product is in its own COLUMN, not ROW as usually.
Can this be done with somehow "rotating" Tomahawk dataTable? or maybe using some other component?
tnx,
Kaur

Not possible.
Use a custom component or t:dataList / ui:repeat with your own shot of HTML.

Similar Messages

  • How to populate form data in jsf

    Hi
    I have 2 questions about how to do things in jsf, i have been working with struts and so will give example of what i would do in struts
    I have a jsf page for login, when i authenticate the next screen is a table with bunch of data,
    Where do i populate this table data and pass it along to jsp page, in struts i would define a Bean and save this bean in request and pass it to jsp page,
    I want to be able to go to home page from any page in my application, in struts i would just define HomeAction class and then add a home button on any page, and when this button is clicked, this would call this HomeAction will be get data to be displayed on homepage and build a bean and forward request to homepage.jsp,
    how can do i this in jsf,

    kulkarni_ash wrote:
    I have a jsf page for login, when i authenticate the next screen is a table with bunch of data,
    Where do i populate this table data and pass it along to jsp page, in struts i would define a Bean and save this bean in request and pass it to jsp page,You also need to define a bean, but you just use faces-config.xml to let JSF create and save it in request. As your question concerns the datatable, you may find this article useful to start with: [http://balusc.blogspot.com/2006/06/using-datatables.html].
    I want to be able to go to home page from any page in my application, in struts i would just define HomeAction class and then add a home button on any page, and when this button is clicked, this would call this HomeAction will be get data to be displayed on homepage and build a bean and forward request to homepage.jsp,In JSF you can use navigation cases for this. Just have something like<h:commandButton action="home" value="home" />in your JSP page and the following in the faces-config:
    <navigation-case>
        <from-outcome>home</from-outcome>
        <to-view-id>home.jsf</to-view-id>
    </navigation-case>

  • How to cast an object in JSF?

    I am working on a travel application. A user can have several bookings and a booking can have several components. A component can be either air or hotel. I want to list the user's bookings on the client using JSF datatable.
    <h:dataTable var="component" value="#{booking.components}">
    Now depending upon the class of component I need to present different information.
    My question is how to cast the variable in JSF ?
    Thanks

    You can use the String value of Object#getClass()#getName() to lookup the classname and evaluate it in the 'rendered' attribute.
    Basic example:
    package mypackage;
    public class Animal {}
    package mypackage;
    public class Cat extends Animal {}
    package mypackage;
    public class Dog extends Animal {}
    package mypackage;
    public class Fish extends Animal {}MyBeanpublic List<Animal> getList() {
        List<Animal> animals = new ArrayList<Animal>();
        animals.add(new Dog());
        animals.add(new Cat());
        animals.add(new Fish());
        return animals;
    }JSF<h:dataTable value="#{myBean.list}" var="item">
        <h:column>
            <h:outputText value="It's a Cat" rendered="#{item.class.name == 'mypackage.Cat'}" />
            <h:outputText value="It's a Dog" rendered="#{item.class.name == 'mypackage.Dog'}" />
            <h:outputText value="It's a Fish" rendered="#{item.class.name == 'mypackage.Fish'}" />
        </h:column>
    </h:dataTable>As far there is no way to cast objects in JSF.
    Edit
    If you find it useful, move the classname request to the superclass:
    public class Animal {
        public String getType() {
            String className = getClass().getName();
            return className.substring(className.lastIndexOf('.') + 1);
    }Which makes life easier without struggling with package names:<h:outputText value="It's a Cat" rendered="#{item.type == 'Cat'}" />
    <h:outputText value="It's a Dog" rendered="#{item.type == 'Dog'}" />
    <h:outputText value="It's a Fish" rendered="#{item.type == 'Fish'}" />Message was edited by:
    BalusC

  • How to use ternary operator in JSF using EL expression

    how to use ternary operator in JSF using EL expression

    I want to use ternary operator for h:datatable columnclasses attribute like as below
    <h:datatable
    columnClasses="#{booleanExpression ? style1,style2 : style3,style4}"
    />
    But it's not working.Is there any other alternative to do this?

  • How Can I use EL in JSF

    Dear All
    I want to add If condition in JSF page .
    How can I use EL at JSF page
    I want ot Add If condition .
    With Thanks and Regards
    Gunjan Bohra

    Actually By Problem Is Regarding DataTable Binding Method
    <f:subview id="vesselist" rendered="#{vesselBaseVO.dfsVO.dfsData.dfsResultBeanListSize>0}" >
          <t:dataTable value="#{vesselBaseVO.dfsVO.dfsData.dfsResultBeanList}"     
                              sortable="false"
                              var="result"
                              id="dfsTable"
                               forceId="true"     
                              rowClasses="AlternateRow1, AlternateRow2"
                              columnClasses="TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnNumber, TableColumnNumber, TableColumnText"
                              headerClass="TableHeader"
                              frame="box"
                              width="100%" 
                              preserveDataModel="false" 
                              rows="10" binding="#{vesselBackingBean.searchResultDataTable}" rendered="true">
               </t:dataTable>
    </f:subview>Although I had block it with renderer attribute ,
    DataTable would not show if resultList size is 0 but
    DATA Table binding method is still called even dataTable is not rendered on page I want to block that binding method calling ...
    How can I do that !!!!

  • How to rotate a text in the adobe reader for mobile ios ?

    how to rotate a text in the adobe reader for mobile ios ?

    There's no rotate command to rotate the document. Instead, rotate the iPad. If it doesn't rotate, turn off the Rotation Lock switch on the side of your iPad.

  • Does anyone know if/how to rotate a video clip?  I shot it so that it is sideways on my computer screen and I cant figure out how to rotate it.

    Does anyone know if/how to rotate a video clip in iphoto?  I shot it so that it plays sideways on my computer and I cannot figure out how to rotate it.  Thanks.

    You can't do that in iPhoto. You'll need a video editor like iMovie for the job.
    Regards
    TD

  • How to rotate a art board in a illustrator using adobe extended javascript

    How to rotate a art board in a illustrator using adobe extended javascript
    how to create mirror image of each textframe content of artboard

    1. there's no "Rotate" function, you have to rotate all your objects and then "resize" your artboard to simulate rotation.
    2. there's no "Reflect" function either, to make "mirror" images, use the ScaleMatrix function, see this post
    Reflect whole objects

  • How to rotate photos in albums?

    how to rotate photos in albums??

    yes, i can downloaded the photo(s) and use preview or iphoto ot some other program to rotate each one, but it seems so awkward, inelegant and SLOW, just to take a quick peek at the five separate photos that someone sends.
    is there really not an app or some similar thing to help?  i recall downloaded an app for explorer on windows, to take care of the same problem...

  • How to rotate photos in photostream so they don't show sideways on apple tv

    how to rotate photos in photostream so they don't show sideways on apple tv? i am viewing my photos on my tv and many of them are sideways. how do i fix this?

    ihint
    Welcome to the Apple Discussions.
    You'll need an application that edits the pics to do this: Acorn, Seashore, Photoshop Elements, Graphic Coverter are some, but there are many others - search on MacUpdate
    Of course, iPhoto will do this too.
    Regards
    TD

  • HT201401 how to rotate a video after recording on my iphone

    how to rotate a video after recording on my iphone?

    Import the video with your computer as with any other digital camera and you can use a video viewing/editing app on your computer to rotate the video.
    For what purpose?

  • How to rotate a Video in WindowsPhone 8.1 Silverlight

    Hi,
    Let me explain my problem.
    I want to record video without shutter sound, so i choice CaptureSource  instead of
    MediaCapture.
    With MediaCapture i can set SetPreviewRotation(VideoRotation) to
    change to rotate of video, the problem is with CaptureSource,
    i can't do that.
    So i looking for some way to rotate a video.
    With library, maybe ffmpeg is the right way, but i can't use it with WP.
    Anyone can tell me how to rotate a video, please ?

    Since you didn't share any code, I hope this works for you. They key here is to rotate the VideoBrush.
    //check if webcam is detected
    if (captureSource.VideoCaptureDevice != null)
    captureSource.Start();
    //RotateTransform
    RotateTransform aRotateTransform = new RotateTransform();
    aRotateTransform.CenterX = 0.5;
    aRotateTransform.CenterY = 0.5;
    aRotateTransform.Angle = 90; //set this value to what you need
    //create a videobrush
    VideoBrush vBrush = new VideoBrush();
    //set the rotate transform to VideoBrush relativetransform
    vBrush.RelativeTransform = aRotateTransform;
    //set it to us the capture source
    vBrush.SetSource(captureSource);
    //fill the rectangle with the video brush contents
    vRect.Fill = vBrush;
    Hope it works.
    Abdulwahab Suleiman

  • How to rotate pencil mark in Acrobat X?

    How to rotate pencil mark in Acrobat X?
    When I am coping pencil mark between pdfs it auto-rotates into horizontal position.
    Thanks in advance.
    Greg

    Hey,
    Can you please share the snapshots of both PDF pages with pencil marks before and after rotation.
    Regards,
    Anubha

  • How to rotate a whole table

    Hi,
    In a page layout document, I have a table that was created to be read 90°.
    Now, I need to bring the table in a normal orientation.
    I know how to rotate de text inside the cell but I need to rotate the whole table.
    So the header that is actualy the left column become the top row.
    I can't figure out out to rotate the table.
    I copied and pasted the table outside the page to rotate it. But, when pasted back in the page layout, it still turn 90°.
    Does anyone can help me?
    Thanks

    The only way to rotate an entire table is to rotate the text frame that
    the table is in.
    So just select the text frame that the table is in, and rotate 90 deg.
    You will need to readjust the textframe so that it fits the page margins
    again.
    Ariel

  • How to rotate jserv log files?

    Hi all,
    We are using 9iAS 1.0.2.1, which has Apache 1.3.12/Jserv 1.1
    How to rotate jserv log files? We have 'rotatelog' to rotate httpds_access_log etc.., but no such program for jserv log.
    (Tomcat has extended rotatelog to jserv, but what about Jserv?)
    Thanks in advance,
    Rajidhar Etta

    798852 wrote:
    Hi i am trying to see the archive files location...here is how i did
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination +LAWCRS_ARC1/lawcrsdb/
    Oldest online log sequence 37264
    Next log sequence to archive 37267
    Current log sequence 37267
    My question is how can I go to the location "+LAWCRS_ARC1/lawcrsdb/".....I am not able to find this location..can any one help...Perhaps you're looking for this...
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16102/asm_util001.htm#OSTMG01610
    I'm not clear on what you're looking for so it's just a best guess.

Maybe you are looking for

  • What ribbon cable should I get for my 3rd drive?

    Hi, I just installed my 3rd hard disk drive in my 933MHZ(was 733) QuickSilver G4. I recently emailed a vendor asking: "Hello, I have a Mac 733 Quick Silver computer and I just installed my third hard disk drive. I need a 40 pin 4(for later) drive scs

  • Partial row at end of file - best way to handle?

    Hi, I have a file where there is a partial row at the end. It doesn't cause an error, but I get a "partial row" warning during execution. What do most people do with these partial rows? Do they just ignore them as long as they don't cause errors? Or

  • How to protect my Apple Mac from viruses?

    How to protect my Apple Mac from computer viruses, malware & phishing?

  • I touch music shuffle not working. Same song plays over and over. How do I fix?

    The shuffle for my iTouch is not working.  It ontinues to play the asme song over and over.  I have powered on and off many times as well as re-syncing the unit.  I would try to take the battery out to reset but do not know how.  What next?

  • JSP Issues Converting Timestamps Correctly

    I am pulling a timestamp from a DB2 database that has the date and time. When I pull the timestamp using the toString() function, it only gives me the year, month, and day, and dropping the time. I initialize the SQL, and create the connection to the