Re: AW: double click problem in JSF

2010-09-23 Thread schneidc

Ok,

I see your point, but on our pages I only need to prevent double mouse
clicks, when the user is typing I don't care. This is why the solution works
in our case.


Daniel Niklas wrote:
 
 
 

-- 
View this message in context: 
http://old.nabble.com/double-click-problem-in-JSF-tp29569348p29789065.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: double click problem in JSF

2010-09-14 Thread schneidc

Hi Daniel,

what I wanted to achieve is that the users can't click certain buttons or
select an entry in a selectOneChoice several times without the first one to
finish and as far as this is concerned, it works.


Daniel Niklas wrote:
 
 Hi,
 
 i don't think, that you have solved all problems with
 tr:selectOneChoice!
 Try an example with two components: 
 
 ...
 tr:inputText text=first partialSubmit=true /
 tr:selectOneChoice text=second partialSubmit=true /
 ..
 
 Edit Text in first and then click on the tr:selectOneChoice second.
 The list with values pops up and you can select one value and you can
 submit another (concurrent) request to the server! Your overlay-div cannot
 prevent opening the select-box of tr:selectOneChoice!
 
 Best regards
 Daneil
 

-- 
View this message in context: 
http://old.nabble.com/double-click-problem-in-JSF-tp29569348p29708580.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: double click problem in JSF

2010-09-10 Thread schneidc

Hi,

I just stumbled upon this thread and tried to add the overlay method to
block inputs for a certain time to my pages.
Mostly it works fine, but I have a problem with tr:selectOneChoice. I
added this JS-function to the onchange event of the menu

function show() {
document.getElementById(overlay).style.visibility = 'visible';
}

and the HTML

div id=overlay style=visibility: hidden;
div id=centered style=position: absolute; top: 0; right: 0; bottom: 
0;
left: 0; width: 50%; height: 50%; margin: auto;
h:graphicImage
value=/theme/ajax-loader.gif
style=margin-left: auto; margin-right: auto; display:
block;/h:graphicImage
/div
/div

which makes the overlay div visible. My problem is that the div doesn't
disappear again and the pages stays unaccessible. When I call this
JS-function via a button after the Java method finishes and the answer is
received by the browser the original css visibility attribute is set again
(which is hidden).

This is how the JS-code generated by Trinidad looks like:
Button onClick: return
_chain('show();','submitForm(\'form1\',1,{source:\'form1:j_id16\'});return
false;',this,event,true)
SelectOneChoice onChange:   return
_chain('show();','TrPage._autoSubmit(\'form1\',\'form1:menu2\',event,1);return
true;',this,event,true)

Can anybody explain to me, why the css-attribute of the div isn't being
reset?

Thanks
Simon

Eisenträger, Tobias wrote:
 
 This is a great example:
 http://javathoughts.capesugarbird.com/2008/03/ajax-button-with-overlay-div-and-wait.html
 
 Works good with trinidad
 
 Toby
 

-- 
View this message in context: 
http://old.nabble.com/double-click-problem-in-JSF-tp29569348p29676032.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: double click problem in JSF

2010-09-10 Thread schneidc

Just solved the problem, I forgot to put a panel with a partial trigger
around the outer div.


schneidc wrote:
 
 Hi,
 
 I just stumbled upon this thread and tried to add the overlay method to
 block inputs for a certain time to my pages.
 Mostly it works fine, but I have a problem with tr:selectOneChoice. I
 added this JS-function to the onchange event of the menu
 
   function show() {
   document.getElementById(overlay).style.visibility = 'visible';
   }
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/double-click-problem-in-JSF-tp29569348p29676688.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [MyFaces] Get rid of ALT attribute is missing warnings for images

2010-07-26 Thread schneidc

Thanks for the tipp, adding alt attributes to the images helped.


Jakob Korherr wrote:
 
 Hi,
 
 j_id2 is the clientId of the h:graphicImage component. However this id
 does
 not have to be rendered for images, thus you don't find it in the HTML.
 
 Just set the alt attribute on the image and the warning will be gone. This
 attribute should IMO always be set (especially when thinking about users
 with visual impairment). However on MyFaces core 2.0.x the warning will be
 gone if you're in ProjectStage = Production.
 
 Regards,
 Jakob
 
 2010/7/22 schneidc simon.w...@gmx.de
 
 
 

-- 
View this message in context: 
http://old.nabble.com/-MyFaces--Get-rid-of-%22ALT-attribute-is-missing%22-warnings-for-images-tp29234327p29265388.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[MyFaces] Get rid of ALT attribute is missing warnings for images

2010-07-22 Thread schneidc

Hi,

I always get this kind of warnings when browsing through the pages of my
application:

[22.07.10 10:12:46:578 CEST] 3c0b HtmlImageRend W
org.apache.myfaces.shared_impl.renderkit.html.HtmlImageRendererBase
encodeEnd ALT attribute is missing for : j_id12

The strange thing for me is that the HTML of the pages doesn't contain the
ids mention in the console output.

Has anybody an idea whats causing these warnings and how I could get rid of
them warnings?

Regards
Simon
-- 
View this message in context: 
http://old.nabble.com/-MyFaces--Get-rid-of-%22ALT-attribute-is-missing%22-warnings-for-images-tp29234327p29234327.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Re-populating DataTable after sorting, results in empty table

2010-07-21 Thread schneidc

In the meantime I was able to fix this.
The problem originated from the fact that when sorting first and then
changing the amount of columns the lists which contain the mapping between
the indices of the original column order and the now sorted order are not
being reset.
So before filling the table again all I had to do was, to reset the sort
criteria of the table... and voila.


schneidc wrote:
 
 Hi,
 
 I encountered the following problem: I have a data table with several
 columns (each sortable) looking like e.g.
 
 |Name|Street|City|...
 
 There are also input fields with which the user can filter the contents of
 the table. E.g. in the city input field when he enters L* and hits an
 update-button only rows are displayed where city starts with an 'L'. So
 far this is working fine UNTIL one tries to sort the table first and
 filter afterwards. This weirdly results in an empty table. If all the
 filter input fields are cleared and the update-button hit again the table
 is filled as if nothing happened.
 
 This is really a showstopper for us and I have no idea what might cause
 the problem. At least on managed bean side, I don't see anything that
 might cause the problem.
 
 
 Cheers
 Simon
 
 EDIT
 Just found out after more testing, that sometimes filtering after sorting
 works partially, meaning that the table is not totally empty but not all
 the rows which would match the filter are displayed (although of course
 the underlying list of table objects has the correct amount).
 

-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Re-populating-DataTable-after-sorting%2C-results-in-empty-table-tp29148077p29224905.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Re-populating DataTable after sorting, results in empty table

2010-07-13 Thread schneidc

Hi,

I encountered the following problem: I have a data table with several
columns (each sortable) looking like e.g.

|Name|Street|City|...

There are also input fields with which the user can filter the contents of
the table. E.g. in the city input field when he enters L* and hits an
update-button only rows are displayed where city starts with an 'L'. So
far this is working fine UNTIL one tries to sort the table first and filter
afterwards. This weirdly results in an empty table. If all the filter input
fields are cleared and the update-button hit again the table is filled as if
nothing happened.

This is really a showstopper for as and I have no idea what might cause the
problem. At least on managed bean side, I don't see anything that might
cause the problem.


Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Re-populating-DataTable-after-sorting%2C-results-in-empty-table-tp29148077p29148077.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: [Trinidad] Re-populating DataTable after sorting, results in empty table

2010-07-13 Thread schneidc

Hi Matthias!

Sometimes the table has several pages but no datascroller (what's that,
never heard of?). And should the sort-feature of the table also sort the
according list?

Simon


Leis, Matthias - SID-NLKM wrote:
 
 Hi! 
 
 This maybe because the table model doesn't get sorted in the background.
 Does your table have more than one page (with t:datascroller)?
 
 Matthias
 
 

-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Re-populating-DataTable-after-sorting%2C-results-in-empty-table-tp29148077p29148389.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: AW: [Trinidad] Re-populating DataTable after sorting, results in empty table

2010-07-13 Thread schneidc

Ok, I'll try to solve this via manual sorting.

Thanks,
Simon


Leis, Matthias - SID-NLKM wrote:
 
 Hi Simon,
 
 Datascroller is a feature of tomahawk. I didn't see your post was about
 Trinidad, sorry.
 
 I have no experience with trinidad, but as far as I know it from the
 tomahawk datatable, sorting the table in the view doesn't sort the model
 in the background. A couple days ago I ran into this problem. 
 I bind the table to a bean property, get the sort column and sort
 direction and sort the list manually according to this values. So the
 displayed table and the model are in sync. 
 
 Regards,
 
 Matthias 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Re-populating-DataTable-after-sorting%2C-results-in-empty-table-tp29148077p29149112.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: AW: [Trinidad] Re-populating DataTable after sorting, results in empty table

2010-07-13 Thread schneidc

Hi again,

unfortunately it didn't work. I attached a sortListener from which I could
get the sort criterion and sorting on its own worked like a charm. But
again, when I tried to filter, all I could see was an empty table.

It also doesn't seem to be just a display problem as after the filtering the
table contents don't even get send to the browser. I'd try to debug myself
to figure out where the data get's lost but a point where to start in the
shallows of MyFaces and Trinidad would be much appreciated :)

Simon



Leis, Matthias - SID-NLKM wrote:
 
 Hi Simon,
 
 Datascroller is a feature of tomahawk. I didn't see your post was about
 Trinidad, sorry.
 
 I have no experience with trinidad, but as far as I know it from the
 tomahawk datatable, sorting the table in the view doesn't sort the model
 in the background. A couple days ago I ran into this problem. 
 I bind the table to a bean property, get the sort column and sort
 direction and sort the list manually according to this values. So the
 displayed table and the model are in sync. 
 
 Regards,
 
 Matthias 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Re-populating-DataTable-after-sorting%2C-results-in-empty-table-tp29148077p29150797.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] ReturnListener of dialog isn't (always) called

2010-05-10 Thread schneidc

@all

I took some time to debug through the myfaces/trinidad code but I found the
reason why the return method wasn't called. The method bound to the ok
button in the dialog deleted the entries of a selectOneChoice on the
parent page and therefore the index of the selected menu item was missing
the according actual SelectItem. Due to my custom error message handling I
never got to see the exception in the first place.
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--ReturnListener-of-dialog-isn%27t-%28always%29-called-tp28432490p28512283.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] ReturnListener of dialog isn't (always) called

2010-05-10 Thread schneidc

@all

I took some time to debug through the myfaces/trinidad code but I found the
reason why the return method wasn't called. The method bound to the ok
button in the dialog deleted the entries of a selectOneChoice on the
parent page and therefore the index of the selected menu item was missing
the according actual SelectItem. Due to my custom error message handling I
never got to see the exception in the first place.
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--ReturnListener-of-dialog-isn%27t-%28always%29-called-tp28432490p28512284.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: autoSubmit not working when the blank option is selected in tr:selectOneChoice

2010-05-10 Thread schneidc

On construction of countryOptions add a new SelectItem(null, ) and set
country to  by default. Then the blank is actually bound to a SelectItem
and valueChange will fire.



senore100 wrote:
 
 I believe this is the default or expected behavior.
 code
 tr:selectOneChoice id=country value=#{actionHandler.country}
 label=Country
     autoSubmit=true immediate=true 
     validator=#{actionHandler.validateCountry}
     f:selectItems value=#{actionHandler.countryOptions}/
 /tr:selectOneChoice 
 /code
 In the dropdown, the first option is a blank option. When I select this
 option, the validator method validateCountry is not getting called. 
 I would like to change its behavior so that even when I select the blank
 option, the autoSubmit still submits the value (even if it submits NULL or
 an empty String -- I don't care). Is there a way to do this?
 Many thanks!
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/autoSubmit-not-working-when-the-%22blank%22-option-is-selected-in-tr%3AselectOneChoice-tp28370398p28512393.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] ReturnListener of dialog isn't (always) called

2010-05-04 Thread schneidc

Ok, no I understand what you mean. Only in my case the rendered property is
always true, I don't touch it. One thing that happens is that the button
gets disabled, when the action is executed but I'd be surprised if that is
the reason for the behaviour... or could it??
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--ReturnListener-of-dialog-isn%27t-%28always%29-called-tp28432490p28444277.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] : Lightweight dialog issue with Firefox

2010-05-04 Thread schneidc

FYI I just switched to Trinidad 1.2.13 and now the dialogs are working in the
problematic Firefox instances as well.
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--%3A-Lightweight-dialog-issue-with-Firefox-tp28387071p28445101.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] ReturnListener of dialog isn't (always) called

2010-05-03 Thread schneidc

Hi,

I'm facing the strange problem that the call of a ReturnListener attached to
a dialog depends on the method calls executed when the OK-Button of the
dialog is pressed.

Basically there are two possible outcomes when this OK-Button is pressed.
Either the action returns immediately adding a FacesMessage or a lot of
changes in the beans occur, but nevertheless I don't see how these changes
might affect the framework in a way that the returnListener doesn't get
called.

So before debugging through the Trinidad code myself I wanted to ask whether
anybody could think of a situation where this issue might occur.


Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--ReturnListener-of-dialog-isn%27t-%28always%29-called-tp28432490p28432490.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] ReturnListener of dialog isn't (always) called

2010-05-03 Thread schneidc

Well, but my buttons is rendered as I have to click it to call the dialog ;-)
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--ReturnListener-of-dialog-isn%27t-%28always%29-called-tp28432490p28434822.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] : Lightweight dialog issue with Firefox

2010-04-28 Thread schneidc

I have the same problem, but only with certain instances of Firefox. On some
PCs it's working in Firefox on others it isn't but with Chrome or Safari it
always does. So far I couldn't figure out what's causing the problem.

But as it is working in the majority of the firefoxes, so far I can live
with it.
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--%3A-Lightweight-dialog-issue-with-Firefox-tp28387071p28387752.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Table row selection over several pages doesn't work

2010-04-27 Thread schneidc

Hi,

I have a large table with several pages, selection style set to multiple and
I just encountered that when rows are selected on one page, if I change to
another page and only when I also make selections on this other page, all
selections made on the previous one vanish.
So it seems, that it's only possible to make selections on a single page.

Is this behaviour intended or a bug? To me it spoils the point of multiple
selection a little bit.


Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Table-row-selection-over-several-pages-doesn%27t-work-tp28374871p28374871.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Antwort: [Trinidad] Table row selection over several pages doesn't work

2010-04-27 Thread schneidc

Thanks for the link,

it made me dig a little deeper and I found the reason. I had a
selectionListener attached to the table which always overwrote the previous
selection when switching the page.
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Table-row-selection-over-several-pages-doesn%27t-work-tp28374871p28377852.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Use Dojo with Trinidad

2010-04-23 Thread schneidc

Sweet, setting the body style to tundra did the trick.

And thanks for the link, I'll have a look at dojofaces.

Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Use-Dojo-with-Trinidad-tp13968204p28339538.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Use Dojo with Trinidad

2010-04-22 Thread schneidc

Pretty old thread, though seems to be the best place for my question.

I've been playing around with Dojo and Trinidad, I tried Daniels sample page
but for reasons I don't understand (yet) it doesn't work. The html-elements
are there but nevertheless the page appears blank. 

But I got another example working:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
tr:document xmlns:ui=http://java.sun.com/facelets;
xmlns:h=http://java.sun.com/jsf/html;
xmlns:f=http://java.sun.com/jsf/core;
xmlns:tr=http://myfaces.apache.org/trinidad;
title=Dojo Integration to Trinidad

f:facet name=metaContainer
script type=text/javascript djConfig=parseOnLoad: true

src=#{facesContext.externalContext.requestContextPath}/dojo-release-1.4.2/dojo/dojo.js.uncompressed.js
/
script
dojo.require(dijit.form.DateTextBox);
/script
link rel=stylesheet type=text/css

href=#{facesContext.externalContext.requestContextPath}/dojo-release-1.4.2/dijit/themes/tundra/tundra.css
/
/f:facet

h:form
input dojoType=dijit.form.DateTextBox /
/h:form
/tr:document

What I can't understand is that the tundra.css styles are being ignored, at
least partially. The input field for the date is decorated correctly but the
calendar itself looks pretty ugly.

Anybody an idea, why's that?

Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Use-Dojo-with-Trinidad-tp13968204p28327727.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] PPR issue with Firefox when returning from Dialog

2010-04-19 Thread schneidc

Hi Cedric,

one of your tips actually helped. The button had no returnListener, but
after attaching one, now the refresh works. Thanks! (but I'm still wondering
why it worked in Chrome and not in the Firefox...)

Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--PPR-issue-with-Firefox-when-returning-from-Dialog-tp28242150p28287646.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] PPR issue with Firefox when returning from Dialog

2010-04-14 Thread schneidc

Hi,

what I tried to achieve is, that when when closing a Trinidad dialog certain
areas of the origin page get refreshed. For testing my pages I use Firefox
and Chrome and in Chrome the PPR is working, in Firefox it isn't.
Even when removing the partialSubmit from the button which triggers the
dialog, so there isn't any more ajax and the page get's a full reload, the
changes aren't visible and I still have to make a manual reload.

Has anybody else encountered a problem with dialogs in Firefox and a hint on
how to solve this issue?

Simon

P.S. Tested with Trinidad 1.2.12/13
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--PPR-issue-with-Firefox-when-returning-from-Dialog-tp28242150p28242150.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Skinning: Change only one occurence of a component

2010-03-30 Thread schneidc

Thanks both of you.

This expression was what I had in mind

.custom_accordion af|panelAccordion::content {
 // apply custom customization to this panel accordion's content
} 



but this special case tr:selectOneChoice contentStyle=... also did the
trick.
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Skinning%3A-Change-only-one-occurence-of-a-component-tp28071783p28082446.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Skinning: Change only one occurence of a component

2010-03-29 Thread schneidc

Hi,

I want to change the width of a tr:selectOneChoice, so it isn't so narrow
when empty. tr:selectOneChoice inlineStyle=width: 100px doesn't do the
trick as the actual menu is embedded in a table and the style get's applied
on the table and not the menu itself.

So I figured out that I should change af|selectOneChoice::content. But
this would alter all the selectOneChoices and I only want to adjust the
width of one. I read the skinning guide but didn't find anything useful. Is
it even possible?

Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Skinning%3A-Change-only-one-occurence-of-a-component-tp28071783p28071783.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: [TRINIDAD] Issue with Trinidad's javascript and UTF-8

2010-03-23 Thread schneidc

Hi Tobias,

I just made an interesting observation. I changed the the first line of one
page from ?xml version=1.0 encoding=UTF-8? to ?xml version=1.0
encoding=ISO-8859-1? (btw I'm using Facelets instead of JSP) and removed
my javascript function which converted Böhm to Böhm.

Now, the POST-Message contains Böhm, but nevertheless on server side the
umlauts are missing. Now I feel a little helpless why's that, in the end the
server get's the same data...

Kind regards
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--Issue-with-Trinidad%27s-javascript-and-UTF-8-tp27988154p27997140.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TRINIDAD] Issue with Trinidad's javascript and UTF-8

2010-03-22 Thread schneidc

Hi,

some days ago I made a posting about a problem with umlauts. I the meantime
I made some progress in fixing the issue (at least sort of) and decided to
start a new topic as in my eyes this is a different case.

The problem with the umlauts or UTF-8 is caused by the javascript when using
PPR. If I disable PPR, enter the text Böhm in an input field, the actual
POST message contains B%C3%B6mh, the UTF-8 encoding of ö. When I enable
PPR, the transmitted value is actually Böhm , so no UTF-8 encoding here
and the server doesn't know how to handle it.

I wrote a little javascript function which replaces ö with the
corresponding encodings so that the transmitted string looks like Böhm
and voila, the according string on the server side does indeed contain the
value Böhm.

So my guess is, that the javascript library which comes with Trinidad
doesn't recognize, that the page encoding is set to UTF-8 and therefore
sends the string as entered in the input box and doesn't do any conversion
where neccessary. Is this a bug? Or am I missing something?


Cheers Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--Issue-with-Trinidad%27s-javascript-and-UTF-8-tp27988154p27988154.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread schneidc

Hi,

on my pages (encoded in utf-8) I have no problem displaying german umlauts
like ä ö ü, but when entered in a tr:inputText... the actual string is
missing the umlauts. E.g. if I enter Böhm the string in the managed bean
equals Bhm.

How's that and what can I do about it?

Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27901371.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread schneidc

Hi Mario,

thanks for the tip, but unfortunately adding the filter didn't help. The
umlauts are still missing in the strings.
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27901990.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread schneidc

Hi,

I'm using Websphere App Server and didn't find anything similar to the
Tomcat connectors, yet.
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27902599.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Datastructure filled but table remains empty (at first)

2010-03-10 Thread schneidc

Nevertheless, thank you for your efforts.

I think I'll make some changes so that the tables get populated not before
the user made some input. It won't spoil the usability too much.

But I'm still very curious what actually causes the problem.
-- 
View this message in context: 
http://old.nabble.com/Datastructure-filled-but-table-remains-empty-%28at-first%29-tp27766007p27847268.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Datastructure filled but table remains empty (at first)

2010-03-09 Thread schneidc

Yes, you got it right, if I call the update() method manually everything's
fine.

I also tried adding some code which calls the update() a second time at the
initial start but this also didn't help and the first table remained empty.
-- 
View this message in context: 
http://old.nabble.com/Datastructure-filled-but-table-remains-empty-%28at-first%29-tp27766007p27837005.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Datastructure filled but table remains empty (at first)

2010-03-09 Thread schneidc

Hello Jakob,

it's a facelet page and this is the first table  (or at least a part of it),
causing the problem

tr:table id=vorgaengeTable

selectionListener=#{vorgangListeController.vorgangSelected}
rowSelection=single autoSubmit=true

selectedRowKeys=#{vorgangListeMainModel.selectedRowKeys}
partialTriggers=loeschenButton
value=#{vorgangListeMainModel.vorgaengeList} 
var=varvorgaenge
tr:column id=columnEx4 align=center 
sortable=true
sortProperty=uebertragung width=80px

inlineStyle=#{varvorgaenge.inlineStyle}
f:facet name=header
h:outputText 
styleClass=outputText value=Übertragung

id=text8/h:outputText
/f:facet
h:graphicImage 
styleClass=graphicImageEx id=imageEx1

value=/theme/#{varvorgaenge.color}.png/h:graphicImage
/tr:column
tr:column id=columnEx5 align=center 
sortable=true
sortProperty=lfdnr width=65px

inlineStyle=#{varvorgaenge.inlineStyle}
f:facet name=header
h:outputText 
styleClass=outputText value=LfdNr
id=text9/h:outputText
/f:facet
h:outputText styleClass=outputText 
value=#{varvorgaenge.lfdnr}
/h:outputText
/tr:column
tr:column id=columnEx6 align=center 
sortable=true
sortProperty=datum.time width=60px

inlineStyle=#{varvorgaenge.inlineStyle}
f:facet name=header
h:outputText 
styleClass=outputText value=Datum
id=text10/h:outputText
/f:facet
h:outputText styleClass=outputText

value=#{varvorgaenge.datum.time}
/h:outputText
/tr:column
tr:column id=columnEx7 align=center 
sortable=true
sortProperty=bezeichnung width=105px

inlineStyle=#{varvorgaenge.inlineStyle}
f:facet name=header
h:outputText 
styleClass=outputText value=Bezeichnung

id=text11/h:outputText
/f:facet
h:outputText styleClass=outputText

value=#{varvorgaenge.bezeichnung}
/h:outputText
/tr:column
/tr:table

and this is the second one

tr:panelGroupLayout styleClass=panelGroup id=group4
inlineStyle=display: block; margin-top: 10px
partialTriggers=vorgaengeTable vorgangsartMenu 
button6
tr:table id=tableEx2 
value=#{vorgangListeMainModel.vermittler}
var=varvermittler

rendered=#{vorgangListeController.table2Rendered}
tr:column id=columnEx1
f:facet name=header
/f:facet
h:selectBooleanCheckbox 
styleClass=selectBooleanCheckbox
id=ausgewaehlt2 
value=#{varvermittler.ausgewaehlt}
/h:selectBooleanCheckbox
/tr:column
tr:column id=columnEx11
f:facet name=header
h:outputText 
styleClass=outputText value=Vermittler

id=text15/h:outputText
/f:facet
h:outputText styleClass=outputText

value=#{varvermittler.vermittler}

Re: Datastructure filled but table remains empty (at first)

2010-03-09 Thread schneidc

Hi Jakob,

puh, providing some snipptes isn't easy as the code is pretty complex, but
I'll try.

private VorgangListMainModel model;

@PostConstruct
public void init() {
_umbuchungComponentController.addReloadEventListener(new
EventListenerReloadEvent() {
public void processEvent(ReloadEvent event) {
VorgangListeController.this.update();
}
});
if (!DomainSCAContext.isUnitTestMode()) {
/*
 * non-lazy construction of some controllers
 */
for (int i = 0; i  
CONTROLLERS_TO_BE_INITIALIZED_NON_LAZY.length; i++) {
String referenceName = #{ + 
CONTROLLERS_TO_BE_INITIALIZED_NON_LAZY[i]
+ };


FacesContext.getCurrentInstance().getApplication().createValueBinding(referenceName).getValue(

FacesContext.getCurrentInstance());
}
}
update();
}

public void update() {
model.getFirstTable.clear();
mode.getSecondTable.clear();
// code for populating both tables
}

Each of our jsf pages has two managed beans, one for the actions (the
controller) and the other containing all the content (the model), e.g. lists
for tables, Strings for labels etc...
The tables have to be populated in a postConstruct method as obviously the
model isn't injected at construction time yet.

I hope the above snippets are of some use, if not I'll try to explain it in
more detail.

Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/Datastructure-filled-but-table-remains-empty-%28at-first%29-tp27766007p27835180.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Datastructure filled but table remains empty (at first)

2010-03-03 Thread schneidc

Hi,

I have a JSF page containing two tables I want to fill in the post construct
method of the according managed bean.
The strange thing is, that only one table gets filled, the other one remains
empty. If I then trigger a manual refill of the tables everything is fine.

I tried to debug the page, but all I can see is, that both lists which
represent the tables are populated correctly at the first call but
nevertheless only the content of one is visible.

Has anybody an idea what could be the reason for this behavior?


Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/Datastructure-filled-but-table-remains-empty-%28at-first%29-tp27766007p27766007.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TRINIDAD] ClassCastException when returning from dialog

2010-03-03 Thread schneidc

Hi,

I just wanted to add a delete confirmation dialog to a page but when I
confirm (or cancel) the dialog I always get this exception:

005a _ErrorPageWri E org.apache.geronimo.kernel.log.GeronimoLog error An
exception occurred
 java.lang.ClassCastException:
org.apache.myfaces.trinidad.component.UIXCollection$Transient incompatible
with [Ljava.lang.Object;
at
org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:207)
at
org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:426)
at
org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:1350)
at
org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:745)
at
org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:424)
at
org.apache.myfaces.trinidad.component.UIXCollection.setClientRowKey(UIXCollection.java:653)
at
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableSelectOneRenderer.decode(TableSelectOneRenderer.java:92)
at
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.decodeSelection(TableRenderer.java:136)
at
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.decode(TableRenderer.java:102)
at
org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1107)
at
org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:701)
at 
org.apache.myfaces.trinidad.component.UIXTable.decode(UIXTable.java:137)
at
org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:187)
at
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIForm.processDecodes(UIForm.java:65)
at
org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
at
org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
at
org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
at
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIViewRoot.access$001(UIViewRoot.java:62)
at javax.faces.component.UIViewRoot$1.process(UIViewRoot.java:121)
at javax.faces.component.UIViewRoot.process(UIViewRoot.java:260)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:117)
at
org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)
at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:178)
at
org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:103)




I have some other pages with dialogs and they work flawlessly, only on this
very page I get the exception and to me it looks as if it has something to
do with the table on it. But I have no clue what to do about it. Any
suggestions are much appreciated.

Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--ClassCastException-when-returning-from-dialog-tp27770642p27770642.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] SelectOneChoice preselection possible?

2010-02-26 Thread schneidc

Hi Vale,

your posting pointed me in the right direction. Now it's working, thank you.
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--SelectOneChoice-preselection-possible--tp27714456p27719132.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TRINIDAD] SelectOneChoice preselection possible?

2010-02-25 Thread schneidc

Hi,

at first I was using the default JSF 1.2 ComboBox (selectOneMenu) but then
switchted to the Trinidad equivalent (selectOneChoice) to get Ajax
functionality.

So far it's working fine, the only thing bothering me in comparison to the
selectOneMenu is, that the default selection is an empty element but I'd
like to have the first element of the bound list of SelectItems to be
preselected.

I tried it via setting the value of the selectOneChoice to the first element
of the list in the constructor of the bean, but that didn't work.
So is it even possible to make a preselection? And if so, how to achieve it?


Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--SelectOneChoice-preselection-possible--tp27714456p27714456.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



MyFaces binding problem with HtmlSelectOneMenu/SelectOneChoice

2010-01-25 Thread schneidc

Hi,

I tried both drop down menus, MyFaces's HtmlSelectOneMenu and Trinidad's
SelectOneChoice and both seem to have the same problem or at least I can't
understand their behaviour.

The menus are bound to an according object in a managed bean and the setter
looks like this:

public void setSelectOne(CoreSelectOneChoice selectOne) {
this.selectOne = selectOne;
if(selectOne.getValue() != null)
System.out.println(selectOne.getValue().toString());
else
System.out.println(broker null);
}

the tags:

tr:selectOneChoice id=menu0 
inlineStyle=margin-left: 20px
binding=#{createTransactionModel.selectOne}
tr:selectItem label=Broker value=broker /
tr:selectItem label=Customer 
value=customer /
/tr:selectOneChoice

The very first time I call a page I get broker null as expected. Then I
push a button which causes a submit and the setter get's called again but
although I SELECTED a value I still get broker null. When I push the
button a second time I finally get a not null value.


And if it wasn't confusing enough the behaviour differs from App Server to
App Server. The above behaviour was observed on a Websphere App Server. On a
Glassfish instead I get broker null when the page is called for the first
time (ok so far) and when I hit a button
broker null
broker != null
as output straight one after another.


Can somebody explain to me this behaviour? Especially why I only get a not
null value on the WAS after causing a submit a second time?


Cheers
Simon
-- 
View this message in context: 
http://old.nabble.com/MyFaces-binding-problem-with-HtmlSelectOneMenu-SelectOneChoice-tp27306676p27306676.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Binding problem with HtmlSelectOneMenu/SelectOneChoice

2010-01-25 Thread schneidc

I just solved the problem by binding the value-attribute of the menu/choice
to a string.
-- 
View this message in context: 
http://old.nabble.com/Binding-problem-with-HtmlSelectOneMenu-SelectOneChoice-tp27306676p27308003.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Styling icon of tr:panelAccordion

2010-01-18 Thread schneidc

Hi,


I just want to change the color of the disclosed / undisclosed icon of the
accordion panel but my problem is that the style always gets overridden by
some other.

In the stylesheet file I added these classes to change the icon color:




af|panelAccordion::undisclosed-icon {
color: #CBD3E2;
}

af|panelAccordion::disclosed-icon {
color: #CBD3E2;
}



But when I have a look at Firebug 



.p_OraHideShowDisclosedSymbol, .af_panelTabbed_tab-selected a,
.p_OraTreeDisclosedSymbol a:link, .p_OraTreeDisclosedSymbol a:active,
.p_OraTreeDisclosedSymbol a:visited, .p_OraTreeRowSelected a:link,
.p_OraTreeRowSelected a:active, .p_OraTreeRowSelected a:visited {
color:#669966; 

text-decoration:none;

}

Inherited froma.af_panelAccordion_title-link Bestandsan...ige.xhtml#

a.af_panelAccordion_title-link, .af_panelAccordion_undisclosed-icon,
.af_panelAccordion_disclosed-icon {

color:#CBD3E2;


}



As you can see, my style gets overriden and I don't know what to do about
it. I tried changing p_OraHideShowDisclosedSymbol but the result stayed the
same.


Can somebody help me with this?

Thanks, Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Styling-icon-of-tr%3ApanelAccordion-tp27208537p27208537.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] Trinidad and Glassfish: resource servlet does not work

2010-01-12 Thread schneidc

Hi,

I think this is the right place to ask, as I'm also having problems with the
resources.

I'm using Glassfish V2.1, Trinidad 1.2.12, MyFaces 1.2.8 and Facelets. My
pages get displayed but as soon as it gets to showing images or accessing
the stylesheet file these aren't found.

A snippet from my faces-config:

servlet
servlet-namefaces/servlet-name

servlet-classorg.apache.myfaces.webapp.MyFacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
/listener

filter
filter-nametrinidad/filter-name

filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class
/filter
filter-mapping
filter-nametrinidad/filter-name
!-- This assumes that the FacesServlet has been registered --
!-- under the name faces --
servlet-namefaces/servlet-name
/filter-mapping
servlet
servlet-nameresources/servlet-name

servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class
/servlet
servlet-mapping
servlet-nameresources/servlet-name
url-pattern/adf/*/url-pattern
/servlet-mapping
context-param

param-nameorg.apache.myfaces.trinidad.resource.DEBUG/param-name
param-valuetrue/param-value
/context-param

context-param

param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name

param-valueorg.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler/param-value
/context-param
context-param

param-nameorg.apache.myfaces.trinidad.FACELETS_VIEW_MAPPINGS/param-name
param-value.xhtml/param-value
/context-param

trinidad-config:

?xml version=1.0?
trinidad-config xmlns=http://myfaces.apache.org/trinidad/config;
!-- Enable debug output --
debug-outputtrue/debug-output
accessibility-modedefault/accessibility-mode
skin-familyvkb/skin-family
/trinidad-config

and trinidad-skins:

?xml version=1.0 encoding=ISO-8859-1?
skins xmlns=http://myfaces.apache.org/trinidad/skin;
skin
idvkb.desktop/id
familyvkb/family
render-kit-idorg.apache.myfaces.trinidad.desktop/render-kit-id
style-sheet-nametheme/stylesheet.css/style-sheet-name
/skin
/skins


I was using exact the same configuration on a Websphere App Server and there
everything worked fine. The only error message I get now when calling a page
is:

SEVERE: Could not load style sheet: theme/stylesheet.css
SEVERE: java.io.FileNotFoundException: Unable to locate style sheet
theme/stylesheet.css in local styles directory
(C:\Programme\GlassfishV2\domains\domain1\generated\jsp\j2ee-apps\ZVD_VS_EAR\ZVD_VS_WEB_war\adf\styles),
or on the class path.

I also added the sun-web.xml when I found this thread to tell the Glassfish
that I'm using MyFaces but this didn't change anything.

Anybody an idea why resources aren't working here?


Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--Trinidad-and-Glassfish%3A-resource-servlet-does-not-work-tp26873419p27140871.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] commandButton doesn't fire (missing onclick attribute)

2010-01-09 Thread schneidc

Hi,

I've just been playing around with MyFaces (1.2.8), Trinidad(1.2.12) on a
Glassfish (V3) app server and everything went better than I thought it would
(as I'm still pretty new to this technology).

But when I tried to test the page I built, I noticed that none of my buttons
works. I posted a similar problem a few days ago and there I forgot to add
the RessourceServlet. Well this time I didn't forget about that, as the JS
libraries are there, but for some reason when I had a look at the generated
HTML, none of the buttons has an onclick attribute. Ok this is the reason
why it doesn't fire, but how to come that the attribute is missing?

Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--commandButton-doesn%27t-fire-%28missing-onclick-attribute%29-tp27086633p27086633.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] commandButton doesn't fire (missing onclick attribute)

2010-01-09 Thread schneidc

How embarrasing, there was indeed the form tag missing. My former IDE always
took care of such things and inserted them by itself.
Maybe one should't get used to drag  drop features too much :-)
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--commandButton-doesn%27t-fire-%28missing-onclick-attribute%29-tp27086633p27087689.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] JS library cannot be found = buttons don't work

2010-01-07 Thread schneidc

Thank you for the tip. I overlooked that the ResourceServlet is not only
necessary for images but also JavaScript.

No it's working.


Matthias Wessendorf-4 wrote:
 
 Hi,
 
 do you have the ResourceServlet listed in your web.xml file ?
 
 -Matthias
 

-- 
View this message in context: 
http://old.nabble.com/-Trinidad--JS-libraries-cannot-be-found-tp27026606p27057406.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] JS library cannot be found = buttons don't work

2010-01-05 Thread schneidc

Hello,

I'm just trying to become acquainted with Trinidad but stumbled upon some
strange problem.
First I noticed that none of my buttons work and after a little digging I
saw that a JavaScript library called Common1_0_11.js is linked in the
generated pages which seems to be responsibel for buttons to work, but the
actual file isn't there. So I had a look at my Trinidad .jar and there's
also no such file, only one called Core.js which seems to contain the
functions needed.

Some my question is, how to come that the linked file isn't there/ or named
wrongly and what can I do about it.


Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/-Trinidad--JS-library-cannot-be-found-%3D%3E-buttons-don%27t-work-tp27026606p27026606.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.