Is this now possible?

The tutorial mentions:
//BEGIN////////////////////////////////////
A command_hyperlink tag can contain parameter tags that will cause an HTML <input type=hidden> element to be rendered. This input tag represents a hidden control that stores the name and value specified in the parameter tags between client/server exchanges so that the server-side classes can retrieve the value. The following two tags show command_hyperlink tags that submit ActionEvents. The first tag does not use parameters; the second tag does use parameters.
<h:command_hyperlink id="commandParamLink" commandName="login"
commandClass="LoginListener" label="link text"/>
<h:command_hyperlink id="commandParamLink" commandName="login"
commandClass="LoginListener" label="Login">
<f:parameter id="Param1" name="name"
valueRef="LoginBean.name"/>
<f:parameter id="Param2" name="value"
valueRef="LoginBean.password"/>
</h:command_hyperlink>
//END//////////////////////////////////////////////////////////
The command_hyperlink is probably now command_link. (docs not updated yet) in Beta 1
The question is: Is it possible to include parameters in this fashion with h:command_button tag?
Just curious as I don't have access to my dev machine to try this out.
Also, I haven't seen any templatization of the Renderers. The rendered code is still hardcoded. But there are many new parameters that should help.
Thanks,
Vinay

>
>
The tutorial mentions:
//BEGIN////////////////////////////////////
A command_hyperlink tag can contain parameter tags
that will cause an HTML <input type=hidden> element to
be rendered. This input tag represents a hidden
control that stores the name and value specified in
the parameter tags between client/server exchanges so
that the server-side classes can retrieve the value.
The following two tags show command_hyperlink tags
that submit ActionEvents. The first tag does not use
parameters; the second tag does use parameters.
<h:command_hyperlink id="commandParamLink"
commandName="login"
commandClass="LoginListener" label="link text"/>
<h:command_hyperlink id="commandParamLink"
commandName="login"
commandClass="LoginListener" label="Login">
<f:parameter id="Param1" name="name"
valueRef="LoginBean.name"/>
<f:parameter id="Param2" name="value"
valueRef="LoginBean.password"/>
</h:command_hyperlink>
//END//////////////////////////////////////////////////
The command_hyperlink is probably now command_link.
(docs not updated yet) in Beta 1
There are now two different tags that can create hyperlinks:
* <h:command_link> creates a hyperlink that acts like a submit button,
and sends the form in which it is embedded.
* <h:output_link> creates a hyperlink that links to an arbitrary URL.
This tag accepts nested <f:parameter> tags to add name/values
query parameters.
The question is: Is it possible to include parameters
in this fashion with h:command_button tag?
Neither <h:command_link> nor <h:command_button> can include nested <f:parameter> tags, because they simply submit the form they are nested inside. Therefore, you can easily convey additional values to the server by setting up hidden input fields in the form, and manipulating their values appropriately.
The new <h:output_link> lets you create a hyperlink to any arbitrary URL via the "href" parameter, and this tag does accept nested <f:parameter> tags to add query parameters.
Just curious as I don't have access to my dev machine
to try this out.
Also, I haven't seen any templatization of the
Renderers. The rendered code is still hardcoded. But
there are many new parameters that should help.
It turns out that templating is not helpful in making Renderers easier to write. I tried, for example, experiments in using JSP (with JSTL tags) as a sort of templating mechanism, but the resulting JSP code was much uglier than the corresponding Java code. Why? Because all of the standard renderers do a lot of conditional inclusion of output, and a Java "if" statement is much more concise than the JSP equivalent. I'm open to concrete suggestions on how one might design a templating system better than this, but it is difficult for me to believe that it's going to be better than the current scheme.
Renderers are classes whose purpose is to render markup for some specific markup language. The design objective should be to make it as easy as possible to write such things. In addition, Renderers are developed by component writers who are already famliar with Java -- they are generally not created by page authors. Further, templating is only half the story -- a renderer is also responsible for decoding the request parameters if you are supporting an input component, so you're going to need to write some logc anyway in those scenarios.
What we did introduce in the PFD, however, was a complete implementation of the structured output methods that were defined on ResponseWriter. For example, the encodeBegin() method for the Renderer used by the <h:output_link> method includes things like:
String href = ... the URL to be linked to ...;
writer.startElement("a", component);
writer.writeURIAttribute("href", href, "href");
Where the arguments to the startElement() method are the markup element to be created, and a reference to the component that is triggering the generation of this element, and the arguments to writeURIAttribute() are the attribute name, the attribute value (in this case known to be a URI, so it gets filtered as necessary automatically, and the property or attribute name from the original component that caused the creation of this attribute in the generated markup.
So, why do you want to bother with the last arguments on these two calls? Well, you can pass null if you are lazy, but passing the correct information makes it possible for development tools to visually render your component at design time (to the page author), and then interpret from where the user clicks the mouse which component's property sheet to show you. Well designed renderers will take pains to provide this information to development tools so that the user experience of someone creating a page with your components is made as good as possible.
Thanks,
VinayCraig McClanahan

Similar Messages

  • I have an iPhone 3G. I want to be able to upgrade to IOS5 but this not possible now. Will this be possible in the near future?

    I have an iPhone 3G. I want to be able to upgrade to IOS5 but this not possible now. Will this be possible in the near future?

    No. The iPhone 3G is not physically capable of running anything higher than 4.2.1. It was discontinued 3 years ago.

  • I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole  iLife suit

    I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole  iLife suit

    Could have been mine!
    Happily this is easily achieved, but it has to be done backwards.
    Delete iMovie 9 (just drag it to the trash). Now install iMovie 6 from the iLife 6 install disks.
    Now re-install iMovie 9. This automatically moves iMovie 6 into a folder it creates in your Applications folder called iMovie Previous Version.
    Now you have them both, and you can have both in the Dock as well.
    Alternatively you could try this method, suggested by poster Uitech:
    Open a terminal and type "touch /Library/Preferences/com.apple.iLife08.plist"
    (No quotes)
    Install iMovieHD6 from the iLife 6 install disk.
    This works with both Leopard and Snow Leopard Macs.

  • Does this mean Actionscript workers on IOS are now possible?

    Does this version fo AIR mean that Actionscript workers on IOS are now possible?

    not yet, you have to wait

  • I recently bought a new iMac as well as a wireless time capsule and have it connected how can I use this external drive as the location to store all my files for iTunes, or is this even possible?

    New iMac user here, I recently bought a new iMac and Time capsule and have the whole network up and running now. I have connected another external HD to the time capsule as well and have a total of 3 TB of storage connected wireless to my new iMac. My question is can I use this location as the default location for iTunes?  I doubt I am gonna run out of room considering the iMac has 1 TB of storage already, but I'd prefer to keep my movies and music off the Mac to keep it running smoothly. If this is possibly, I'd like to do this with iPhoto as well. 

    I would advise against placing your iTunes library on a Time Capsule.
    The Time Capsule is designed as a backup device and not for wireless streaming of video.
    Before you do anything more, can I suggest you put into place a reliable, redundant backup strategy.
    Unless you are prepared to risk loss of your iTunes library due to a hard drive failure, I would not put iTunes on the Time Capsule.
    Leave your iTunes library on your iMac until such time as your internal drive is full. Backup to Time Capsule using Time Machine and create a clone of your internal iMac HD to your external drive.
    That's my 2 cents worth. Others may have a different opinion.

  • Is this preparedSatement possible?

    G'Day, G'day!!
    I am just wondering if this is possible?
    I am using MSAccess and have a practice table with 3 columns, a gui with 3 JTextFields and a button called save, when I click on save I want the preparedStatement to insert the values into the database. I'll post the relevent code.
    if (e.getSource() == save){
    //I'llskip the connection code for brevity
    try{
    boolean abool;
    String a = textField1.getText();
    if(a.equals("")){abool = false;}
    if(!a.equals("")){abool = true;}
    String b = textField2.getText();
    Stringc = textField3.getText();
    PreparedStatement pstmt = con.prepareStatement("INSERT INTO TIMESHEET VALUES ( "+
    pstmt.setBoolean(1, abool);
    pstmt.setString(2, b);
    pstmt.setString(3, c);
    pstmt.executeUpdate();
    pstmt.close();
    con.close();
    }catch(SQLException ex){System.err.println("SQLException: " + ex.getMessage());}
    As it runs now, I get the error:
    SQLException: [Microsoft][ODBC Microsoft Access Driver] Optional feature not implemented.
    I haven't run into this error before, does that mean that my driver does not support this function or am I doing something wrong?
    I have used preparedStatements in the form of
    PreparedStatement pstmt = con.prepareStatement("UPDATE TIMESHEET SET "+
    "COL1 = ? WHERE NAME LIKE ?)";
    pstmt.setFloat(1, 2.25);
    pstmt.setString(2, myname);
    pstmt.executeUpdate();
    And this works perfectly fine, if anybody could offer a brief explanation that would be great. I have searched all 114 archives on preparedStatements and couldn't find an answer, and I am sure it is a simple one!!!!
    Cheers and Thanks alot!! Oz.

    Actually disregard,
    I am really sorry to have wasted you time. I found the problem.
    In my text program it was actually
    boolean abool = true
    String a = text1.getText();
    if(a.equals("")){abool = true;}
    if(!a.equals("")){abool = false;}
    String b= text2.getText();
    String c= text3.getText();
    float f = Float.valueOf(c).floatvalue();
    (the cols were -col1 bit, col2 varchar(10), col3 float)
    and the pstmt was actually
    pstmt.setBoolean(1,abool);
    pstmt.setString(2,b);
    pstmt.setFloat(3.f);
    so I changed the last one to pstmt.setString(c) which is in the format of a float and it took it that way.
    But I don't understand why it wouldn't take the setFloat, and gave the option new implemented error?
    Once again i apologize, learners error!!!

  • Is this effect possible?

    Can anyone help me determine if this effect is possible in
    flash? I've created a video to show the effect, heres the link:
    http://www.mediafire.com/?sharekey=db70f6709325bacd1bee9a6e9edd9c76e04e75f6e8ebb871
    Its only 2mb video. Basically what happens is this: When you
    move the cursor around the page, the "shine" inside the logo
    changes. So think of it this way, there's an image file (a shiny
    texture) that follows wherever the cursor is, and the image is
    masked inside of the logo, so that when you move the cursor around
    you see the texture inside the logo moving with you. Anyone know if
    this is possible? Or anyone have ideas on how I can achieve a
    similar effect?

    sure you could do something like that with moving an item in
    the x,y directions related to mouse movement. the demo is related
    to calculating the angle of the mouse and rotation. you can do
    something similar with a percentage based on the mouse position and
    scroll an image under a mask accordingly.
    and now that you say that - i totally see what was happening
    in the vid ;)
    give me a bit and I'll put a demo up.

  • How is this even possible? Folders out of sync. Backlog command says in sync.

    Two 2008 R2 servers.  Been running DFS-R for about a year now.  Generally no problems.
    If I run the DFSRdiag backlog command on either server, for one particular folder, it says there is no backlog.  The only problem with that is;  on one server there are 11 files in that folder, on the other server, in the same folder, there are
    15 files.  How is this even possible!

    Hi,
    Please check if DFS Replication filter some special file from replication. For more detailed information, please refer to the article below:
    Exclude files or subfolders from replication
    http://technet.microsoft.com/en-us/library/cc758048(v=ws.10).aspx
    If the issue still exists, please create a Diagnostic Report to see if there is any error message.
    Create a Diagnostic Report for DFS Replication
    http://technet.microsoft.com/en-us/library/cc754227.aspx
    Best Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • PLEASE LET ME KNOW IF THIS IS POSSIBLE WITH FLUID GRID LAYOUT?

    This is an example of what I'm trying to do. Excel was the best way for me to provide a visual. Is this possible? Every time I try to place divs in a similar layout, the div will not take up multiple rows. For example div 4 would move down and where row 7 is would now be row 4. Div 2 would have also moved down because of 5. I have a large image that needs to be placed to the left of a header and vertical menu. I'm trying to keep the header and menu seperate and the image needs to be aligned to the top left of the text. I'm sorry that I'm overcomplicating this. I must admit it surprises me that the fluid grid appears to be dictated by rows. I'm wondering if for this particular design I should just stick to a table.

    I'm perplexing by your question.  How do you expect the divs to move in other resolutions?  For the question to be whether this is possible with a fluid grid there has to be some transformation between the layouts.  If you are just looking for a static layout, that is possible.  If the heights are to be fixed like that you could just specify the heights on the divs to make the height.  If the divs are moving down then add the attribute clear:none; to the div, in this case 2 and 4.  This will prevent the float from being cleared and pushing the element down.

  • We recived  ipads today in school to use as a tool and they said if i sync it to my itunes my itunes will be erased and all the ipad stuff currently on there would be erased the second i connect to the school i was wondering if this was possible?

    we recived  ipads today in school to use as a tool and they said if i sync it to my itunes my itunes will be erased and all the ipad stuff currently on there would be erased the second i connect to the school i was wondering if this was possible? i already pointed a couple things that they said was true but were false like useing that find my ipad thing were it just zooms in on your location they also said it would beep and they can track it anywhere witout a 3g network which we use the wi fi. teachers can connect to itunes i belive becasue they don't have the same rescrtictions as use students but early in the year they said one teacher tried and failed with the results that said would happen to  use. besides ristrictions like loseing the app store and not being aloud to open any app wemb adresses we are to add  music via the itunes that i already on the ipad. i was just wondering if there full of it right now because i think they are.

    If I were a teacher setting up iPads to be used at school/work, I wouldn't link it to my personal iTunes, rather I'd create/use a different one. If for no other reason than to keep the kidlets and your fellow teachers from possibly accessing your account.

  • Real-Time 120fps web video now possible! (for 120Hz monitor users)

    Hello,
    With the emergence of "120fps" cameras (Galaxy S4, GoPro Hero 3, Casio EX-FC200S, and the upcoming iPhone 5S), Blur Busters did some research on a distribution medium for playing back 120fps videos in real-time.  We have discovered some good news.
    (1) Presently, 120Hz monitors are quite popular among high-end video game players.  There are more than a dozen models avaialble:
    http://www.blurbusters.com/faq/120hz-monitors/
    One of the more popular models is the VG248QE, which as over 60 reviews on Amazon (4.5 out of 5 stars).
    (2) The web is now a potential 120fps video distribution medium; and some computer users use 120Hz computer monitors now.  There is now a way to speed up 120fps slow-motion to 120fps real-time, and it was recently discovered that all the popular web browsers support 120fps@120Hz (Internet Explorer, Chrome, and the new FireFox 25+ Beta) using the <VIDEO> element are now capable of playing back at 120fps in real time on a 120Hz computer monitor:
    http://www.blurbusters.com/faq/real-time-120fps-video
    In general, any machine capable of playing back 1080p@60fps, is easily capable of playing back 720p@120fps.  Both are pretty similiar bitrates.  Also, some websites (www.testufo.com using Chrome browser) also shows that it's now possible in some web browsers to automatically detect the refresh rate of a web visitor, so you can present 120fps videos automatically only to 120Hz visitors.
    I want to make sure that Adobe Premiere Pro is capable of converting 120fps slow-mo into 120fps real-time, as a natively-encoded 120fps H.264 video file?
    Thanks,
    Mark Rejhon

    Adobe employees:
    I need an answer to this question as I'm getting more than one inquiry (I run Blur Busters) and I want to help people be able to create 120fps videos. 
    Do I recommend continuing using Adobe, or do I refer them to a competitor's product if it's the only way to output 120fps???? 
    Even plain free tools such as ffmpeg can do 120fps!
    Some people are starting to think abot 120fps editing (e.g. http://www.hfrmovies.com/tag/120-fps/ ...) so this is an emerging area that Adobe also needs to pay attention to.
    The 120fps distribution medium is already here today, and it's called "web browsers running on a 120Hz computer monitor".

  • Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help..

    Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help.

    HI, if I did this, then I believe that I cloud would then hold my info which I don't want. Is that the case? The reason is that I'm an old git, therefore used to not giving out info. Would I be right?
    Thank-You so much for taking the time to answer.
    John.

  • HT4436 I both have iCloud accounts and would like to share photo's etc. Can any one please advise if this is possible and how to do it?

    My wife and I both have iCloud accounts and would like to share photo's etc. Can any one please advise if this is possible and how to do it?      
    I have a Macbook-pro and Ipad, my wife has a much loved ipad.

    It's all described in iCloud Help here: http://help.apple.com/icloud/#mmc0cd7e99

  • I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I think there are third-party programs which will do that, but you can also do it with Automator:
    See the links in my post, here: https://discussions.apple.com/message/22390873#22390873
    The file or clipboard contents will be in Tab Separated vars, so you'll have to open with a spreadsheet program and save as Comma Separated Vars format.

  • MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?

    MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?

    The firmware update corrects an error that may occur, however the techs would have checked the condition of the battery prior to installing a new one.  If the battery was questionable, the firmware update was really not too important.
    You can check the battery condition by going to the apple, left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about Cycle Count, Condition, Capacity: Condition anything but Normal needs to be checked and may need to be replaced.
    The cycle count of 1,000 charge cycles is the typical life of a Lithium-Ion battery, the point at which the capacity drops to 80% of the as built capacity.

Maybe you are looking for

  • Drag and drop no longer possible in excell 2007 on vista

    Hi, we just migrated to Vista with office 2007. So we are now on GUI 7.10 Patch 4; BI add-on's SP2 Patch 1. Is it normal that we no longer can drag and drop (add characteristic; swap columns;...) or is there something wrong? Ciao! Joke

  • How do I get rid of 'sweet page' after having used malware softw., reestablishing firefox as hyperlink, rebooting ?

    It is not the described ''sweet pack' but 'sweet page' - presents itself as search engine - supposedly from the Netherlands. I have run malwarebytes anti-malware - no malware found - I reestablished mozilla as hyperlink - rebooted twice - didn't help

  • Failover active/standby

    Hello. There are two Cisco devices: asa5512 and asa5510. Tell me whether it is possible to organize a failover active / standby using these devices. If this is not possible, tell me if there are any other possibilities for automatic backup.

  • Air ios stagewebview youtube video without sound

    I developed an app for IOS  with flash air 15.0 I used StageWebView  to play youtube video in my app. On some ipad  I have video +sound and on other only video without sound. Is someone have a track for a solution? You can find my app on the apple st

  • Endeca 3.1.0 . Search stops working without reason

    We experience serious issue on our test site, which supposed to be ready for production deployment soon. I don't have a lot information, but what happens - search and product listing pages stop working, feels like search freezes. You click on some ca