[JSF 1.2] prependId only fixes part of the problem

This is just to comment on the prependId attribute (4.1.4.2). While I
think this is a good start, it does not address all of the occasions
where faces might alter the id of a component. There is still the
problem of <h:dataTable> and <f:subview>. In an email sent to the
MyFaces list Adam Winer mentioned something about subview not being
required for server-side includes. Can you please elaborate on that?
Plus there is still the matter of dataTable. Can you add prependId to
dataTable? That leaves the data contained inside dataTable. Ideally
that could be represented with [rowIndex] appended to the id instead
of the '_rowIndex'. The MyFaces project has an extended data table
<x:dataTable> that solves this problem.
<h:form id="dataTable">
<x:dataTable value="#{forceIdBean.choices}" var="choice">
<h:column>
<x:inputText id="widget" value="#{choice}"
forceId="true" forceIdIndex="true"/>
</h:column>
</x:dataTable>
</h:form>
yields
<table>
<tbody>
<tr><td><input id="widget[0]" name="widget[0]" type="text"
value="foo"/></td></tr>
<tr><td><input id="widget[1]" name="widget[1]" type="text"
value="bar"/></td></tr>
<tr><td><input id="widget[2]" name="widget[2]" type="text"
value="buzz"/></td></tr>
</tbody>
</table>
Regards,
sean schofield

This is just to comment on the prependId attribute (4.1.4.2). While I
think this is a good start, it does not address all of the occasions
where faces might alter the id of a component. There is still the
problem of <h:dataTable> and <f:subview>. In an email sent to the
MyFaces list Adam Winer mentioned something about subview not being
required for server-side includes. Can you please elaborate on that?
Plus there is still the matter of dataTable. Can you add prependId to
dataTable? That leaves the data contained inside dataTable. Ideally
that could be represented with [rowIndex] appended to the id instead
of the '_rowIndex'. The MyFaces project has an extended data table
<x:dataTable> that solves this problem.
<h:form id="dataTable">
<x:dataTable value="#{forceIdBean.choices}" var="choice">
<h:column>
<x:inputText id="widget" value="#{choice}"
forceId="true" forceIdIndex="true"/>
</h:column>
</x:dataTable>
</h:form>
yields
<table>
<tbody>
<tr><td><input id="widget[0]" name="widget[0]" type="text"
value="foo"/></td></tr>
<tr><td><input id="widget[1]" name="widget[1]" type="text"
value="bar"/></td></tr>
<tr><td><input id="widget[2]" name="widget[2]" type="text"
value="buzz"/></td></tr>
</tbody>
</table>
Regards,
sean schofield

Similar Messages

  • I have adobe illustrator CS5. When I save a document as a pdf and open it again later to edit Adobe reader can't read the whole document because it only shows part of the document. It is very frustrating. How can I fix this?

    I have adobe illustrator CS5. When I save a document as a pdf and open it again later to edit Adobe reader can't read the whole document because it only shows part of the document. It is very frustrating. How can I fix this?

    keokipineapples schrieb:
    I do have all of my files I am working on located on an external drive. I plan to transfer them directly to the hard drive
    Transfer them to your harddisk immediately.
    External drives are not offiially supported and the source of errors of all kinds including complete loss of files.
    Illustrator support for networks and removable media

  • I am having trouble printing  and am only getting part of the document which i have no margins set any help??

    i am having trouble printing  and am only getting part of the document  i have no margins set any help??

    What version of Pages?
    What Printer?
    If it is Pages '09, turn Comments off.
    Peter

  • InDesign only showing part of the image

    I'm doing a job for a client in InDesign CS5. I have not worked in CS5 before, so don't know if this is a bug or if I'm doing something wrong.
    It seems to happen randomly and I have checked the preferences and tried using different settings for the Display Performance. I've even tried viewing the job with Overprint Preview switched on.
    When placing images only a part of the image shows. When I output to PDF or Print the file then the entire image shows. This makes it very hard to do layouts, especially in cases where I need to crop an image.
    In InDesign it looks like this:
    When I output to PDF (this is a low res output, just to demonstrate my point) the entire image shows:
    In InDesign it looks like this:
    When I output to PDF:
    The machine I'm ding this job on is an iMac, 2.66GHz Intel Core 2 Duo with 4GB 800MHZ DDR2 SDRAM. It is running Mac OSX 10.6.4. And InDesign is on version 7.0.2.

    mafeiteng wrote:
    I'm doing a job for a client in InDesign CS5. I have not worked in CS5 before, so don't know if this is a bug or if I'm doing something wrong.
    It seems to happen randomly and I have checked the preferences and tried using different settings for the Display Performance. I've even tried viewing the job with Overprint Preview switched on.
    When placing images only a part of the image shows. When I output to PDF or Print the file then the entire image shows. This makes it very hard to do layouts, especially in cases where I need to crop an image.
    In InDesign it looks like this:
    When I output to PDF (this is a low res output, just to demonstrate my point) the entire image shows:
    In InDesign it looks like this:
    When I output to PDF:
    The machine I'm ding this job on is an iMac, 2.66GHz Intel Core 2 Duo with 4GB 800MHZ DDR2 SDRAM. It is running Mac OSX 10.6.4. And InDesign is on version 7.0.2.
    If I understand things correctly, you're placing client-supplied images into a new InDesign file that you're creating, so the only part of the workflow that you haven't created is the graphics. This logically leaves the container file innocent.
    The question becomes "what's up with either the hardware or the graphics?" If the problem persists with the same graphic files and a new container file on a different user account on the same computer, it's possible that hardware is the villain. If it doesn't persist on a different computer, it's likely the hardware. If it does persist on a different computer, in a new container file, it's likely something in the graphics files.
    It's not clear if the graphics card in your iMac is one of the models whose video RAM is "dedicated," that is, it doesn't share video RAM with the main RAM, or if it does share VRAM. If it shares RAM, it's possible that 4GB isn't sufficient to display all the open applications and their demands. If this is the cause, it's a hardware issue (insufficient RAM.)
    Because the graphics print and convert to PDF without the problem, it would seem that the graphics are innocent, but perhaps something in the processing of these outputs causes the problem to disappear. For example, perhaps there's some flattening involved. Perhaps there's a clipping path or channel mask of some kind involved that affects the InDesign display? (Just fishing.)
    Have you tried opening the graphics in their creating application and saving them to new names? Any difference in the behavior when those graphics are freshly-placed in InDesign, or when their links are updated?
    Have you tried placing PDFs of the graphics? If they appear properly, can you crop them to achieve your requirements and hope the problem goes away after the deadline passes<G>?
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • I occasionally have issues waking my macbook pro up from sleep mode and have to restart the computer. The apple store replaced the sleep part but the problem is still there

    I occasionally have issues waking my macbook pro up from sleep mode resulting in my need to restart the computer. I dislike all of my programs opening at once when I do get the computer started becasue it slows the cpu down. The apple store replaced the sleep part but the problem is still there. Note: i never had this problem with snow leopard

    I'm not certain but my new MBA 13...when in sleep mode comes back on from a black screen when I simply click on the left mouse button. Also, one time I did a SECURE EMPTY TRASH on files that totalled more than 1GB and it took so long that the fan kept increasing in speed so I pressed on the POWER button and the MBA shut...I was able to boot up with no problem. As a rule, I now only do secured erases for trash bin data totalling 500mb or less...anything above that gets a regular erase (dump).

  • My Display Only Works Part of the Time and Apple Care Won't Help Me (Long)

    I bought my computer at a discounted price because it was a restocked item, but was it really worth it? I'm beginning to think not. I saw that it had one stuck pixel, but saving that much money on such an expensive computer, the pixel hardly seemed like a travesty. However, I think I've discovered the real reason why the last owner gave up such a seemingly exceptional piece of hardware...
    After about a month of flawless operation my "new" computer started to act a little strangely. It wouldn't always go to sleep when it was scheduled, the screen saver wouldn't always come on by itself...things that I though a simple PRAM reset, SMC reset, or disk permission repair would fix. After countless attempts at all three "fixes" I was still having problems...a few days after these problems started occuring something even more drastic happened: My computer would turn on (the little light would come on, I'd hear the fans start running and the start up tone) but the screen would remain black. I tried several PRAM and SMC resets as suggested on this forum, but the screen continued to come up black for about an hour. That's when I called Apple.
    The Apple Care specialist on the phone asked me for the serial in which I had to lift the computer up to get (since I obviously couldn't read it off the screen). She suggested an SMC reset which, I explained to her, I had tried already but it hadn't worked, however, I was willing to give it another shot. Oddly (and rather annoyingly) enough it worked, and for a short amount of time I was happy...until it happened again...another call to Apple...and again...and about 3 or 4 calls to Apple Care later, they suggested that I go in to an Apple Store to have it looked at.
    The Apple Specialist made an appointment with me to meet with an Apple Genius the next day at 4:30PM at a store about a mile away from my house. The next day I lugged my 24" iMac through the local mall (I'm female, 5'2", and I weigh about 108 so it wasn't too easy of a feat) to discover the apple store was CLOSED for the next few days so that they could "make the store better." I called Apple Care on my cell phone right there in the mall and asked them what was going on. Didn't they know that this Apple Store was closed? The man I was talking to said that they knew and he wasn't sure how the person I had talked to just the day before had signed me up for an appointment when he hadn't even asked for my e-mail address. It was most bizarre. This man made an appointment with me for later that same day at an Apple Store about 45 minutes away from where I live. I didn't want to go, but I'm a college student and I was a desperate for my computer to work again.
    Shaking around in that box must have brought it out of it's strange seized-up state because as I brought it out for the Mac Genius to look at it turned on for him no problem. Quite a frustrating problem because it's so spontainious that it keeps making me look like either a liar or a fool. He said he'd run an 8-hour diagnostic check on it and I could pick it up the next day. So the next day I waited for their call but I got none. I called them and they said that they were still running tests and it'd be ready the next day. The day after, about an hour and a half before I had to go to work, they called me and told me my computer was ready. They said they had ran a 24-hour diagnostic and everything was working fine but they said they'd run more tests if I wanted them to. I'm a full-time college student and I need my computer for just about all of my classes, so I declined more tests and told them I'd pick it up right away. I dashed over there to pick it up and dashed back as fast as I could (and I even made it to work on time...but just barely). Later that night I found that they had accidentally left their diagnostics CD in my computer (I called them about it and they said that would like it if I would bring it back...I still haven't mailed it).
    All was fine and good (well, just okay...it still had problems with its sleeping and screen-savering) with my computer until yesterday. I got that black screen again upon start up....but this time my "fixes" worked after a few tries. There were no more problems for the rest of yesterday.
    However, today I came home from school and go to start up my computer and the screen turned on and I saw the little mac symbol and that little circle of bars...but then it froze. I held in the little button to force a shutdown and when I started it back up again I was greeted by my good old friend, Mr. Black Screen. Just wonderful. I tried my "fixes" but today I didn't get lucky. So while I was holding in the button to start up my computer (again) and give it another go, I held it longer than I was supposed to and the little on light began flickering. Then I heard this unpleasant tone that lasted a few seconds before stopping and treating me to the startup sound. This time the screen turned on. Yay! I go to call Apple to find out what I had just done, and I find out that my 90 days are up and unless I wanted to pay $50 for them to be puzzled by my issue once more or give them $300 for not quite 3 more years of service, I'd have to lug my computer to an Apple Store or post here to get help. Thanks a lot Apple Care.
    My "new" computer cost me almost $3,000. It should work the way it's supposed to. I need it to last me no less than 6 more years, but with the problems I've had with it in the first 3 months (which seem only to be getting worse and more frequent), I don't know if I'm expecting WAY too much out of it. I've been a loyal Apple user for 13 years and out of the 5 computers I've had in that time I've never had so many problems (actually I've never had any problems, at least nothing really serious; I'd never even called Apple Care before this). I'm a fairly experienced user (I'm not a Mac Genius or anything, but I know the ropes) and I am sure this is not normal behavior for an Apple computer (or any computer of that matter).
    I'm so frusterated I'm not sure what to do. What's wrong with my computer? How can I get Apple to help me? How can I get Apple to even believe me? Any advice would be greatly appreciated and thank you so much for reading my very long (and rather dramatic) story.

    Thanks for reading and thanks for the advice. Perhaps I'll ask them about it next time this problem occurs, although carrying the thing through a mall that is only about a mile away is the least of my worries. I'll do if it is both free (I don't make enough at my job to pay for such a service) and relatively speedy, although I'd hate for them to come over and for the computer to work properly (as bad as that sounds). It'd be a wasted trip and nothing would get fixed.
    I'm contemplating videotaping myself performing my "fixes" on it the next time I have this problem.

  • When i use pogo, on the risk game for instance, when i click on a game room, a window pops up and immdediately reduces in size, this size only shows part of the battle screen; i have tried resetting the zoom feature, no luck.

    i have seen this before on my home PC (on a lap top now) it is impossible for me to correct so i have to use IE to play pogo (i dont like IE it is slower) i click on a game, i go to a game room, and a window normally pops up showing the tables. normally i click on a seat and it takes me to a new window and the game board. NOW, when this first window pops up, it is aboout 1/4 size of my screen, but immediately reduces in size to about 1/6 of my screen. wnen the game loads, i cannot view the whole screen only part of the screen, as if it is zoomed in. I tried your suggestion and reset the zoom, no help.... i changed the zoom level manally.... no help.
    this also happens in scrabble and most other games. it is related to the java i am sure, but it only happens on firefox. How do i correct this. I have uninstalled, and reinstalled firefox. i have had this happen on the older version of firefox. it happens on multiple computers so it isnt just one computer.
    HELP!!!!!
    please

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • Opening iTunes from Windows XP desktop - can only see part of the page

    I have installed and uninstalled the latest iTunes on my Toshiba laptop with Windows XP with a webshots wallpaper. Only part of the page comes up. Can anyone help me with why only part of the page comes up. I'm very frustrated.

    Open the Control Panel, click on Displays, and change the monitor's resolution to at least 1024 by 768.
    (37316)

  • Printer printing single page as multiple pages and on sometimes only print part of the page

    The problem may not be with the printer it could be with the computer instead and I would think that maybe that is the problem.  The computer is an HP 255 as well, and both units belong to my school so I don't have administrative functions. The computer runs Mircosoft windows 7-professional version 32 bit.  I used to be able to print normally with no problems.  However, recently I tried to print my paystub and it blew it up so wide and long that it only printed a third of the page down and half the page across.  Today I tried to print out some other paperwork and for a single page it was printing as three pages but some pages it printed in their entirety with no problems.  I've tried to run the diagnostic check and it downloads but refuses to let me open it no matter what program I try to use.  I've tried to check the printing perameters but it tells me that it's set at 10 by 11 with no margins and is set to portrait.  If I try it on my Asus desktop, it seems to print things just fine so I'm inclined to believe it is the computer but I have no idea what's wrong or how to fix it.  Thanks.

    BMack,
    Have you thought about having a 2-page document where the second page is a duplicate of the first page?
    Jerry

  • Purple shadow to add titles appear only at part of the movie.

    I want to Drag & Drop a title over a video (like a subtitle). But only the bottom part of the clip shows the purple shadow which allows me to drop the clip. So I have to first drop it there and then move it to the other part. This is really strange?
    This is from the documentation: "As the title hovers over the video,
    a purple shadow appears, representing the frames that the title will cover."
    Any advice would be great!
    Thanks,
    Holger

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • Why did i lose my apps and data after syncing to another new computer? i clicked transfer but only transfered part of the apps?

    Okay basically i had 166 apps in my ipod...
    After i bought new laptop and wanted to sync into it, it said to transfer apps from ipod touch to laptop, i did, but it only transferred part of it and said the remaining was not able to be transfered...
    i had encountered this problem when i transfered the apps in my old pc to my old laptop, now that i wan to transfer apps from my old laptop to my new one, i thought i knew what to do..
    i knew the problem was with the fact that the other apps was bought with another apple id thus not able to transfer as it is not yet authorised... while it was syncing, i authorised the older apple id that the apps was not synced yet... after i did, i realised i was left with the apps bought with my new apple id only...
    then i realised i lost all my data on my older apps, like the privacy photo app which had memories of my photos stored in it.. tap tap 4 all my songs in it... and 70 other apps..
    What happened? this did not happen in my previous attempt during my transfer of apps from old pc to old laptop... so why?
    its really really sad... all my data was lost, i got back the apps though.. but data in it all LOST...
    what to do? can i still retrieve it back?

    - Try redownling the apps by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    The computer has to be authorized and signed into the account that originaly purchased them.
    - When all the apps are ih the iTunes library, try restoring from backup if you have the backup that would contain all the app date. I would turn off autosyncing (go to iTunes>Prefernces>Device and check the box titled Prevent iPods...automatically" to prevent overwritting the previous backup.

  • How can I make a picture fit entirely in the photo box in a book.  The picture size is small, but the it only shows part of the picture, and the zoom is all the way down.

    I am trying to make a Photo Book using IPhoto for my granddaughter's wedding.  I am using 6 pictures per page, as I have many pictures to add to book.
    The picture size is small.  But when I zoom is all the way down to the end to make smaller.  Doesn't go far enough.  When I try to put a picture in the square spot, it cuts off part of the picture.  Has anyone else had this problem, and could help me out.  I really would like to put on each page even more pictures, but that is not an option with IPhoto.  I have used other sites to make books.  This is my first try with IPhoto.   I may have to revert to the old familiar ones.  Wanted to give this one a try.  My granddaughter leaves for Germany on the 21st to join her marine husband.  I am quickly running out of time.  (The wedding was this past Saturday)

    Place it the book, right click on it and fit to frame
    LN

  • Why does my Safari Auto-Fill only work part of the time?

    First of all, why isn't there a link on the Apple website to provide Feedback?  Secondly, I'd love to know why my Safari Auto-Fill only works some of the time, like when entering Sweepstakes information.  I realize some websites don't allow Auto-Fill, but on the ones that do, I can't get the second window to open up when I click "Auto-Fill".

    Safari 6.1.1 and yes all web forms are checked under Preferences Auto-Fill.  I am daily entering sweepstakes for the HGTV dream home, and even though the initial bubble shows up "Auto-Fill your contact information" shows up, when I click on it, the second bubble that lets you confirm the info doesn't always open.  I tried it just now in a separate tab, and it opened; then I came back here to write some of the message.  Then I went back to try again and it won't open.  It drives me crazy.  I keep trying with each new data field and sometimes the second bubble will open further down the page.

  • How do I export only a part of the sequence? (storyline)

    In FCP 7 it was simple to export only a portion of the sequence. How in the world do I do that in X?
    Later.
    Tom

    If you have Compressor 4 then I think you can still export just a selected range of your timeline ... if not, or if you don't have Compresor 4 then you should be able to quickly convert a selected range to a Compound Clip, then right click that and Open in Timeline, then export that timeline (ie the original selection) ... then just step back into the main timline and Undo to get back to the pre-Compound Clip state if necessary.

  • I haven't been able to fix any of the problems with Firefox.. I am long time user and never have I had such a problem... I guess I will have go back to explorer

    for 2 weeks, I haven't been able to use features of my favourite websites, Java & Flash are not working with Firefox.. I have been through all the troubleshooting uninstalling reinstalling... nothing is fixing the problem
    the only solution seems to be, give up on Firefox and go back to Explorer... such a sad day

    See simple solution here, with possible downsides. https://support.mozilla.org/en-US/questions/930581

Maybe you are looking for

  • FireFox won't open. Message (ss13.d11 missing from cumputer.Try reinstalling) I reinstalled and still get the message.

    I received a message from Webroot about a threat. I clicked remove threat. Now FireFox won't open. Message says "ss13.d11" Maybe (ssl3.dll) is missing from the computer. Try reinstalling the program to the computer. Reinstalled FireFox and I still ge

  • Transfer from XP to 10.4

    Hi, Sorry i'm not sure where to post this question. I'm looking to move all music in itunes on a winbook with XP on it. I tried connecting a ethernet cable but the mac doesn't seem to recognize the laptop. I have a wireless card on the winbook but do

  • Use of NAS disk for project material

    I intend to buy a new computer. I have used and vill continue use a 2 TB NAS disk in the system to store photos, documents and videolips. It is a Synology DS111 with Gigabit Ethernet connection. I will use this computer for videoediting. I have used

  • MAP for the material in material master

    Hi All I have problem in moving average price of a model in material master Example. Material - ABC in material master Moving average price - $10  total stock- 5                                       Toatl Value--$50 now i have sub con Po for materia

  • Video no longer accessible

    Just installed OSX 10.9.2 on my iMac.  Now I can no longer activate the videos found in this blog: http://askdrmyers.wordpress.com/2014/03/25/lethal-diseases-in-pca-patients/#comm ent-1372 How do I view these videos once again?