Re: t:inputDate off by one day!

2006-05-10 Thread Volker Weber
Hi Cosma,


Cosma Colanicchia wrote:
 Thank you Volker,
 
 I've read the discussion and the JIRA issue, but I'm still not sure about a
 solution. I'm using a recent snapshot of myfaces-impl-1.1.4 and a snapshot
 of tomahawk-1.1.2, so it should be already addressed in my lib version
 ([#MYFACES-506] is marked as fixed in 1.1.1), isn't it?
 
 Do I have to pass a timeZone=something to workaround this issue?

Yes the solution was adding a
f:dateTimeConverter timeZone=#{bean.timeZone} /
to the t:inputDate


The problem is this:

the spec says the default timezone for a dateTimeConverter is GMT.

if no converter is explicit specified a default converter is taken to
convert java.util.Date values, which is the case at the t:inputDate.

if you use a Date as value for a h:outputText the default converter is
also taken, and the date shoult rendered equal to the inputDate tag.

But if you use value=the date is #{bean.date}. at the h:outputText,
then the value type of the expression is String and the date part is not
converted by a converter (just a toString() is done)!

e.g.

h:outputText value=The date is #{bean.date} /

h:outputText value=The date is /h:outputText value=#{bean.date}/

this two lines renders the same text with (if your servers default
timezone is != GMT) different times.



Regards,
  Volker


 
 Thank you again
 Cosma
 
 
 On 5/10/06, Volker Weber [EMAIL PROTECTED] wrote:
 

 Hi,

 see
 http://issues.apache.org/jira/browse/MYFACES-506

 and this thread

 http://www.mail-archive.com/users@myfaces.apache.org/msg09779.html

 Hope this helps.


 Regards,
   Volker


 Cosma Colanicchia wrote:
  Hi,
  I'm using the t:inputDate component, but it is rendered always a
  day-after the actual value of bound property. I use the component this
 way:
 
  t:inputDate id=birthDate value=#{peopleAction.person.birthDate }
  required=true type=date popupCalendar=true/
 
  the bound variable is of type java.util.date. I'm sure that the
  component is wrong because I tried to render, near the inputDate, an
  inputText for the same property and this one renders the correct date.
  What's wrong?
 
  TIA, Cosma

 -- 
 Don't answer to From: address!
 Mail to this account are droped if not recieved via mailinglist.
 To contact me direct create the mail address by
 concatenating my forename to my senders domain.

 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: [newbie] - simple custom tag problems

2006-05-11 Thread Volker Weber
Hi,

see inline

JSFSter Smith wrote:
 Hi Volker,
 
 Thanks for your response!
 
 I attempted the forcing of the ValueBinding in the setProperties() since
 setting value of the tag attribute was not passed on to the Component
 Class.
 
 In a case like this: my:testTag value=My message (or) my:testTag
 value=#{datapanel.description}
 
 where description is a String, the contents of the 'value' attribute in the
 setProperty method of the Tag class are picked up ok.
 
 But in the case when the the  Bean member is not a string (like in the
 dataTable case), the contents of the value attribute in  setProperty()
 are :
 #{datapanel.description}. In this case, the getValue() in my Custom
 Component class is null and the EL does not seem to be processed.
 
 My setProperties() method :
protected void setProperties(UIComponent component)
{
FacesContext context = FacesContext.getCurrentInstance();
super.setProperties(component);
 
if(value != null)
{
if (isValueReference(value))
 {
ValueBinding vb = context.getApplication
 ().createValueBinding(value);
component.setValueBinding(value, vb);
  }
  else
  ((UICustomHTMLOutput)component).setValue(value);
}
}
 
 
 And my state and encode methods from the UICustomHTMLOutput:
@Override
public Object saveState(FacesContext context)
{
Object values[] = new Object[2];
values[0] = super.saveState(context);
values[1] = value;
return ((Object) (values));
}
 
@Override
public void restoreState(FacesContext context, Object state)
{
Object values[] = (Object[])state;
super.restoreState(context, values[0]);
value = (String)values[1];
}
 
// component render
public void encodeBegin(FacesContext context) throws IOException
{
 
ResponseWriter writer = context.getResponseWriter();
 
writer.startElement(p, this);


writer.write(value);

This is the wrong part. In case of ValueBinding the value is of cause
null. you need here the same if else as in setProperties():

  if (value != null) {
writer.write(value);
  } else {
ValueBinding vb = getValueBinding(value);
if (vb != null) {
  writer.write(vb.getValue(context));
}
  }

Regards,
  Volker

writer.endElement(p);
writer.flush();
}
 
 Any help is greatly appreciated. Thanks!
 
 -Rajiv
 
 On 11/05/06, Volker Weber [EMAIL PROTECTED] wrote:
 

 Hi Rajiv,


 JSFSter Smith wrote:
 
  Firstly, kudos to the MyFaces team for the recent releases of myfaces
  1.1.3 and tomahawk 1.1.2!
 
  I am just a few weeks old with JSF and am using it for a current
  project. So far its been great but I am still getting to know the
  deatils. I attempted to create a simple custom JSP tag and was able to
  get it together surprisingly quickly. But I do have a problem now. My
  tag essentially renders the string in an attribute value. Here is a
  sample usage:
 
  my:testTag value=My message (or) my:testTag
  value=#{datapanel.description}
 
  But the ValueBinding does not seem to work when I try to access a
 member
  of the DataPanel bean that is a collection or another class that has
  members. Examples of these cases are below:
 
  t:dataTable value=#{datapanel.sentenceDisplayData} var=each
  t:column
  my:testTag value=#{each.part0} /
  my:testTag value=#{each.part1} /
  my:testTag value=#{each.part2} /
  my:testTag value=#{each.part3} /
  /t:column
  /t:dataTable
 
  (OR)
  my:testTag value=#{datapanel.summary.length
 
  I am including my setProperties method of the TagLib class. Would be
  great if someone can point out what I am missing here.
 
  protected void setProperties(UIComponent component)
  {
  /* you have to call the super class */
 
  FacesContext context = FacesContext.getCurrentInstance();
  super.setProperties(component);
 
  if(value != null)
  {
  if (isValueReference(value))
   {
  ValueBinding vb =
  context.getApplication().createValueBinding(value);
  component.setValueBinding(value, vb);
 

 - remove following --
  // forcing the value from the ValueBinding to the
  component.
  if(vb != null)
  {
  if(vb.getValue(context) != null)
 
  ((UIInfactHTMLOutput)component).setValue(vb.getValue
 (context).toString());
  }
 - / remove following --

 Why this? Thats the problem!
 Here are the valueBinding evaluated at component creation time, but
 datatable needs eavluation at rendering time!

 just remove this an it should do.


}
else
((UIInfactHTMLOutput)component).setValue(value

Re: Where to find sandbox.jar ?

2006-05-12 Thread Volker Weber
Hi,

we have made the war file of the tobago-example-demo at
http://tobago.atanion.net/tobago-example-demo
downloadable just by adding the '.war' extension:
http://tobago.atanion.net/tobago-example-demo.war

This is just a link from www root to
tomcat/webapps/tobago-example-demo.war so is garanted to be alway the
actual deployed file.

The war file, of cause, contains all needed libs, maybe Martin, or
someone else, can do the same at irian.at ?



Regards,
  Volker


Dennis Byrne wrote:
 Welcome Sascha,
 
 The sandbox is currently not in the release.  You can obtain this using maven 
 and subversion, using the instructions found on the wiki.  However your 
 timing could not be worse, as Apache subversion could be down for a few days. 
  Sorry.
 
 Dennis Byrne
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 02:56 AM
To: users@myfaces.apache.org
Subject: Where to find sandbox.jar ?

Hello!

First try on a mailing list, hope not to do it all wrong :-)

I am wondering where I can get the latest sandbox.jar from MyFaces? I only 
found it in myfaces-1.1.1, but it seems not complete.

On the sandbox-site I saw fishEyeNavigationMenu and at irian.at I found an 
example using it, which I like very much. But this component is not included 
in the sandbox.jar from myfaces-1.1.1, is it?

How or where can I get it?

Thanks very much,
Sascha

 
 
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: [jira] Commented: (TOBAGO-69) t:image does not support a png image with a transparent background - displays background as mid-grey

2006-05-21 Thread Volker Weber
Hi John,

you can use tobagos script tag to embed javacript into the page.

The body of the tag is included as javascript section into the html head
tag.


Regards,
  Volker

John wrote:
  Oh yes
 
 I have Javascript code which when embedded within a page, permits IE to
 display PNGs with transparency.
 What would be the best way to include this javascript within the Tobago
 application, so that tag files and jsp pages could display transparent
 pngs in IE? Alternately, how would I include the script in a particular
 tag file to display transparent pngs?
 
 I tried just doing a f:verbatim wrapped script at the beginning of
 the tag file, but that didn't work.
 
 Thanks,
 John
 
 -Original Message-
 From: Philippe Hennes (JIRA) [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 18, 2006 6:49 AM
 To: John
 Subject: [jira] Commented: (TOBAGO-69) t:image does not support a png
 image with a transparent background - displays background as mid-grey
 
 [
 http://issues.apache.org/jira/browse/TOBAGO-69?page=comments#action_1241
 2344 ] 
 
 Philippe Hennes commented on TOBAGO-69:
 ---
 
 There is a bug regarding png images in IE. IE ist not capable of
 displaying 8bit png's with alpha transparency without an proprietary
 filter [1]. 
 As a workaround you can use 24bit png images or gif's.
 
 Alternativly you can change the grey background by assigning a new
 background color:
 Photoshop: Just select the mask color option, and set the color picker
 to the color of the background the picture is intended to sit on.
 Gimp: In Gimp you can check save background color in the png export
 dialog.
 
 [1]
 http://msdn.microsoft.com/workshop/author/filter/reference/filters/alpha
 imageloader.asp
 
 
t:image does not support a png image with a transparent background - 
displays background as mid-grey
--
--

 Key: TOBAGO-69
 URL: http://issues.apache.org/jira/browse/TOBAGO-69
 Project: MyFaces Tobago
Type: Bug
 
 
Versions: 1.0.7
 Environment: Tomcat 5.15 - IE
Reporter: John Allan
Priority: Minor
 
 
Pretty much summed up in the summary.
 
 
 --
 This message is automatically generated by JIRA.
 -
 If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
 -
 For more information on JIRA, see:
http://www.atlassian.com/software/jira
 
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Does anyone have the IE png fix working with Tobago/myFaces?

2006-05-21 Thread Volker Weber
Hi John,

wrote my first mail to fast, youre already use t:script :-).

as i wrote in th first mail the body of t:script is rendered inside hrml
script tags, and

!--[if lt IE 7.]
script defer type=text/javascript src=js/pngfix.js/script
![endif]--

is no valid javascript :-(.

try this:


t:script onload=applyIePngFix();

function applyIePngFix() {

  // maybe better IE recognition needed
  if (!window.all) {
return;
  }

  var arVersion = navigator.appVersion.split(MSIE)
  var version = parseFloat(arVersion[1])

  if (version  7.0) {
return;
  }

  if ((version = 5.5)  (document.body.filters))
  {
for(var i=0; idocument.images.length; i++)
{
  var img = document.images[i]
  var imgName = img.src.toUpperCase()
  if (imgName.substring(imgName.length-3, imgName.length) == PNG)
  {
 var imgID = (img.id) ? id=' + img.id + '  : 
 var imgClass = (img.className)
 ? class=' + img.className + '  : 
 var imgTitle = (img.title)
 ? title=' + img.title + '  : title=' + img.alt + ' 
 var imgStyle = display:inline-block; + img.style.cssText
 if (img.align == left) imgStyle = float:left; + imgStyle
 if (img.align == right) imgStyle = float:right; + imgStyle
 if (img.parentElement.href) imgStyle
 = cursor:hand; + imgStyle
 var strNewHTML = span  + imgID + imgClass + imgTitle
   +  style=\ + width: + img.width + px; height:
   + img.height + px; + imgStyle + ;
   + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
   + (src=\' + img.src
   + \', sizingMethod='scale');\/span
 img.outerHTML = strNewHTML
 i = i-1
  }
}
  }
}

/t:script


I cant test, because i'm working on linux, but this should do.

you can also put the code into a file e.g. js/pngfix2.js and use it like

t:script onload=applyIePngFix(); file=js/pngfix2.js/


Regards,
  Volker


John wrote:
  http://homepage.ntlworld.com/bobosola/index.htm
 
 I included the js file using t:script
 
 t:script
 !--[if lt IE 7.]
 script defer type=text/javascript src=js/pngfix.js/script
 ![endif]--
 /t:script
 
 And I see that in the page source of the rendered page
 But no - transparent pngs.
 
 Thanks,
 John
 
 -Original Message-
 From: Philippe Hennes (JIRA) [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 18, 2006 6:49 AM
 To: John
 Subject: [jira] Commented: (TOBAGO-69) t:image does not support a png
 image with a transparent background - displays background as mid-grey
 
 [
 http://issues.apache.org/jira/browse/TOBAGO-69?page=comments#action_1241
 2344 ] 
 
 Philippe Hennes commented on TOBAGO-69:
 ---
 
 There is a bug regarding png images in IE. IE ist not capable of
 displaying 8bit png's with alpha transparency without an proprietary
 filter [1]. 
 As a workaround you can use 24bit png images or gif's.
 
 Alternativly you can change the grey background by assigning a new
 background color:
 Photoshop: Just select the mask color option, and set the color picker
 to the color of the background the picture is intended to sit on.
 Gimp: In Gimp you can check save background color in the png export
 dialog.
 
 [1]
 http://msdn.microsoft.com/workshop/author/filter/reference/filters/alpha
 imageloader.asp
 
 
t:image does not support a png image with a transparent background - 
displays background as mid-grey
--
--

 Key: TOBAGO-69
 URL: http://issues.apache.org/jira/browse/TOBAGO-69
 Project: MyFaces Tobago
Type: Bug
 
 
Versions: 1.0.7
 Environment: Tomcat 5.15 - IE
Reporter: John Allan
Priority: Minor
 
 
Pretty much summed up in the summary.
 
 
 --
 This message is automatically generated by JIRA.
 -
 If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
 -
 For more information on JIRA, see:
http://www.atlassian.com/software/jira
 
 
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Does anyone have the IE png fix working with Tobago/myFaces?

2006-05-21 Thread Volker Weber
Hi John,

the tobago onload functions did not change any class or style attributes.

but the menu is created via onload, so if your images are inside
menuItems this can't work.

you can try to enclose the original script code inside of f:verbatim tags.


Regards,
  Volker

John wrote:
  Volker,
 
 Thanks - but it doesn't cause the pngs to work.
 One thing I noticed, was (when viewing the rendered pages source), is
 that the call to the pngfix in the onload is before a lot of the Tobago
 onLoad functions. Since the pngfix works by rewriting code and applying
 spans, is it possible that its changes are being overwritten by the
 Tobabgo onLoad js functions?
 
 John
 
 -Original Message-
 From: Volker Weber [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, May 21, 2006 2:09 AM
 To: MyFaces Discussion
 Subject: Re: Does anyone have the IE png fix working with
 Tobago/myFaces?
 
 Hi John,
 
 wrote my first mail to fast, youre already use t:script :-).
 
 as i wrote in th first mail the body of t:script is rendered inside hrml
 script tags, and
 
 !--[if lt IE 7.]
 script defer type=text/javascript src=js/pngfix.js/script
 ![endif]--
 
 is no valid javascript :-(.
 
 try this:
 
 
 t:script onload=applyIePngFix();
 
 function applyIePngFix() {
 
   // maybe better IE recognition needed
   if (!window.all) {
 return;
   }
 
   var arVersion = navigator.appVersion.split(MSIE)
   var version = parseFloat(arVersion[1])
 
   if (version  7.0) {
 return;
   }
 
   if ((version = 5.5)  (document.body.filters))
   {
 for(var i=0; idocument.images.length; i++)
 {
   var img = document.images[i]
   var imgName = img.src.toUpperCase()
   if (imgName.substring(imgName.length-3, imgName.length) == PNG)
   {
  var imgID = (img.id) ? id=' + img.id + '  : 
  var imgClass = (img.className)
  ? class=' + img.className + '  : 
  var imgTitle = (img.title)
  ? title=' + img.title + '  : title=' + img.alt + ' 
  var imgStyle = display:inline-block; + img.style.cssText
  if (img.align == left) imgStyle = float:left; + imgStyle
  if (img.align == right) imgStyle = float:right; + imgStyle
  if (img.parentElement.href) imgStyle
  = cursor:hand; + imgStyle
  var strNewHTML = span  + imgID + imgClass + imgTitle
+  style=\ + width: + img.width + px; height:
+ img.height + px; + imgStyle + ;
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
+ (src=\' + img.src
+ \', sizingMethod='scale');\/span
  img.outerHTML = strNewHTML
  i = i-1
   }
 }
   }
 }
 
 /t:script
 
 
 I cant test, because i'm working on linux, but this should do.
 
 you can also put the code into a file e.g. js/pngfix2.js and use it like
 
 t:script onload=applyIePngFix(); file=js/pngfix2.js/
 
 
 Regards,
   Volker
 
 
 John wrote:
 
 http://homepage.ntlworld.com/bobosola/index.htm

I included the js file using t:script

t:script
!--[if lt IE 7.]
script defer type=text/javascript src=js/pngfix.js/script 
![endif]-- /t:script

And I see that in the page source of the rendered page But no - 
transparent pngs.

Thanks,
John

-Original Message-
From: Philippe Hennes (JIRA) [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 18, 2006 6:49 AM
To: John
Subject: [jira] Commented: (TOBAGO-69) t:image does not support a png 
image with a transparent background - displays background as mid-grey

[
http://issues.apache.org/jira/browse/TOBAGO-69?page=comments#action_12
41
2344 ]

Philippe Hennes commented on TOBAGO-69:
---

There is a bug regarding png images in IE. IE ist not capable of 
displaying 8bit png's with alpha transparency without an proprietary 
filter [1].
As a workaround you can use 24bit png images or gif's.

Alternativly you can change the grey background by assigning a new 
background color:
Photoshop: Just select the mask color option, and set the color picker
 
 
to the color of the background the picture is intended to sit on.
Gimp: In Gimp you can check save background color in the png export 
dialog.

[1]
http://msdn.microsoft.com/workshop/author/filter/reference/filters/alp
ha
imageloader.asp



t:image does not support a png image with a transparent background - 
displays background as mid-grey
--
--

Key: TOBAGO-69
URL: http://issues.apache.org/jira/browse/TOBAGO-69
Project: MyFaces Tobago
   Type: Bug


   Versions: 1.0.7
Environment: Tomcat 5.15 - IE
   Reporter: John Allan
   Priority: Minor


Pretty much summed up in the summary.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
 
 administrators:
 
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http

Re: Does anyone have the IE png fix working with Tobago/myFaces?

2006-05-21 Thread Volker Weber
If the f:verbatim not works, pleas send me one of your images, i can try
it out tomorrow.

see the footer how to build my email.

John wrote:
  Not within menuItems but they are the image of a ToolBarCommand...
 
 -Original Message-
 From: Volker Weber [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, May 21, 2006 11:40 AM
 To: MyFaces Discussion
 Subject: Re: Does anyone have the IE png fix working with
 Tobago/myFaces?
 
 Hi John,
 
 the tobago onload functions did not change any class or style
 attributes.
 
 but the menu is created via onload, so if your images are inside
 menuItems this can't work.
 
 you can try to enclose the original script code inside of f:verbatim
 tags.
 
 
 Regards,
   Volker
 
 John wrote:
 
 Volker,

Thanks - but it doesn't cause the pngs to work.
One thing I noticed, was (when viewing the rendered pages source), is 
that the call to the pngfix in the onload is before a lot of the 
Tobago onLoad functions. Since the pngfix works by rewriting code and 
applying spans, is it possible that its changes are being overwritten 
by the Tobabgo onLoad js functions?

John

-Original Message-
From: Volker Weber [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 21, 2006 2:09 AM
To: MyFaces Discussion
Subject: Re: Does anyone have the IE png fix working with 
Tobago/myFaces?

Hi John,

wrote my first mail to fast, youre already use t:script :-).

as i wrote in th first mail the body of t:script is rendered inside 
hrml script tags, and

!--[if lt IE 7.]
script defer type=text/javascript src=js/pngfix.js/script 
![endif]--

is no valid javascript :-(.

try this:


t:script onload=applyIePngFix();

function applyIePngFix() {

  // maybe better IE recognition needed
  if (!window.all) {
return;
  }

  var arVersion = navigator.appVersion.split(MSIE)
  var version = parseFloat(arVersion[1])

  if (version  7.0) {
return;
  }

  if ((version = 5.5)  (document.body.filters))
  {
for(var i=0; idocument.images.length; i++)
{
  var img = document.images[i]
  var imgName = img.src.toUpperCase()
  if (imgName.substring(imgName.length-3, imgName.length) ==
 
 PNG)
 
  {
 var imgID = (img.id) ? id=' + img.id + '  : 
 var imgClass = (img.className)
 ? class=' + img.className + '  : 
 var imgTitle = (img.title)
 ? title=' + img.title + '  : title=' + img.alt + '
 
 
 
 var imgStyle = display:inline-block; + img.style.cssText
 if (img.align == left) imgStyle = float:left; + imgStyle
 if (img.align == right) imgStyle = float:right; +
 
 imgStyle
 
 if (img.parentElement.href) imgStyle
 = cursor:hand; + imgStyle
 var strNewHTML = span  + imgID + imgClass + imgTitle
   +  style=\ + width: + img.width + px; height:
   + img.height + px; + imgStyle + ;
   +
 
 filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
 
   + (src=\' + img.src
   + \', sizingMethod='scale');\/span
 img.outerHTML = strNewHTML
 i = i-1
  }
}
  }
}

/t:script


I cant test, because i'm working on linux, but this should do.

you can also put the code into a file e.g. js/pngfix2.js and use it 
like

t:script onload=applyIePngFix(); file=js/pngfix2.js/


Regards,
  Volker


John wrote:


http://homepage.ntlworld.com/bobosola/index.htm

I included the js file using t:script

t:script
!--[if lt IE 7.]
script defer type=text/javascript src=js/pngfix.js/script 
![endif]-- /t:script

And I see that in the page source of the rendered page But no - 
transparent pngs.

Thanks,
John

-Original Message-
From: Philippe Hennes (JIRA) [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 18, 2006 6:49 AM
To: John
Subject: [jira] Commented: (TOBAGO-69) t:image does not support a png 
image with a transparent background - displays background as mid-grey

   [
http://issues.apache.org/jira/browse/TOBAGO-69?page=comments#action_12
41
2344 ]

Philippe Hennes commented on TOBAGO-69:
---

There is a bug regarding png images in IE. IE ist not capable of 
displaying 8bit png's with alpha transparency without an proprietary 
filter [1].
As a workaround you can use 24bit png images or gif's.

Alternativly you can change the grey background by assigning a new 
background color:
Photoshop: Just select the mask color option, and set the color picker


to the color of the background the picture is intended to sit on.
Gimp: In Gimp you can check save background color in the png export 
dialog.

[1]
http://msdn.microsoft.com/workshop/author/filter/reference/filters/alp
ha
imageloader.asp




t:image does not support a png image with a transparent background - 
displays background as mid-grey
-
-
--

   Key: TOBAGO-69
   URL: http://issues.apache.org/jira/browse/TOBAGO-69
   Project: MyFaces Tobago
  Type: Bug


  Versions

Re: (Resolved) -Does anyone have the IE png fix working with Tobago/myFaces?

2006-05-22 Thread Volker Weber

Hi John,

for style you don't need f:verbatim, you can use
tc:style
img {
 behavior: url(pngbehavior.htc);
}
/tc:style

the content of tc:style is rendered into style tags inside of html head

regards
 Volker

2006/5/22, John [EMAIL PROTECTED]:



This works! Thank you.
The trick is:

1) making sure the blank.gif is in the root of the web application with the
pngbehavior.htc file
2) use f:verbatim tags surrounding the style tags at the beginning of the
document

f:verbatim
style type=text/css

img {
 behavior: url(pngbehavior.htc);
}

/style
/f:verbatim



 
 From: Rogerio Pereira [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 21, 2006 6:01 PM
To: MyFaces Discussion
Subject: Re: Does anyone have the IE png fix working with Tobago/myFaces?


I'm using PNG Behavior in my JSF/Facelets apps:

http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

works fine for me...




Re: datatable and selecting a row event

2006-05-23 Thread Volker Weber

Hi Alex,

we do this by using h:commandlink, with parameter, for displaying the row data.
But you need to hit the text when clicking on a row.

regards,

 Volker

2006/5/23, Alex Burton [EMAIL PROTECTED]:

Hi all,

 I'm trying to use a datagrid as a way to quickly find and select a
particular item from a large list of items. The items have several
attributes I wish to display and can number in the 100's, so a drop down
list isn't the right way to go...

 So... I have my datagrid displaying beautifully... but am now stumped on
how to throw an even to catch a row selection... I know there are the
rowOnClick=javascript attributes in the datagrid, but how do i bind that
to something useful?

 Anyone have any pointers? Ideally I'd like to get the forceIdIndexFormula
value (or object it represents in my backing bean).

 Thanks in advance,
 Alex.

--
We should move forwards, not backwards, upwards, not sideways, and always
twirling, twirling towards victory!


Re: forceId not supported in Tobago?

2006-05-25 Thread Volker Weber
Hi John,

yes, thats correct. And i still can't see any good reason to need it.

What is the problem having fully-qualified ids in generated html?
You have still full controll over the generated ids by assigning a id to
each namingContainer component tag.

Tobago tags with UIComponents implementing NamingContainer are:
  sheet, form, page, popup, tree and treeListbox.

IMHO using forceId will introduce more problems than it solves.


Regards,
  Volker

John wrote:
 Is this correct - has some other method been chosen to ensure that ids
 are not fully-qualified in the generated HTML?
  
 John
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: forceId not supported in Tobago?

2006-05-25 Thread Volker Weber
Just another reason to avoid the IE ;-)

There is no need for css things in tobago, the theming does this for you.


Regards,
  Volker

Jeff Bischoff wrote:
 because you can't escape the ':' symbol in IE CSS. So you run into
 trouble with CSS, and potentially make things harder in javascript too.
 
 Volker Weber wrote:
 
 Hi John,

 yes, thats correct. And i still can't see any good reason to need it.

 What is the problem having fully-qualified ids in generated html?
 You have still full controll over the generated ids by assigning a id to
 each namingContainer component tag.

 Tobago tags with UIComponents implementing NamingContainer are:
   sheet, form, page, popup, tree and treeListbox.

 IMHO using forceId will introduce more problems than it solves.


 Regards,
   Volker

 John wrote:

 Is this correct - has some other method been chosen to ensure that ids
 are not fully-qualified in the generated HTML?

 John



 
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: forceId not supported in Tobago?

2006-05-25 Thread Volker Weber
John,

you get fixed ids if you assign ids to all namingContainer components,
eg if you have a structure like:

tc:page id=page 
   ...
  tc:in id=name .../
  ...
/tc:page

the input field name will get the id page:name which you can pass to
the script. If in doubt take a look into the generated html code, if the
generated id contains a '_idxx' part then there is a namingcontainer
without assigned id involved.

BTW: the 'dynamically' generated ids are also fix as long as you don't
change the tag structure.


Regards,
  Volker

John wrote:
 Then if forceId is not supported, how do you use pre-existing javascript
 methods that need to be passed an id, since the html Ids are dynamically
 generated and fully qualified. 
 
 -Original Message-
 From: Volker Weber [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 25, 2006 8:28 AM
 To: MyFaces Discussion
 Subject: Re: forceId not supported in Tobago?
 
 Just another reason to avoid the IE ;-)
 
 There is no need for css things in tobago, the theming does this for
 you.
 
 
 Regards,
   Volker
 
 Jeff Bischoff wrote:
 
because you can't escape the ':' symbol in IE CSS. So you run into 
trouble with CSS, and potentially make things harder in javascript
 
 too.
 
Volker Weber wrote:


Hi John,

yes, thats correct. And i still can't see any good reason to need it.

What is the problem having fully-qualified ids in generated html?
You have still full controll over the generated ids by assigning a id
 
 
to each namingContainer component tag.

Tobago tags with UIComponents implementing NamingContainer are:
  sheet, form, page, popup, tree and treeListbox.

IMHO using forceId will introduce more problems than it solves.


Regards,
  Volker

John wrote:


Is this correct - has some other method been chosen to ensure that 
ids are not fully-qualified in the generated HTML?

John




 
 --
 Don't answer to From: address!
 Mail to this account are droped if not recieved via mailinglist.
 To contact me direct create the mail address by concatenating my
 forename to my senders domain.
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: forceId not supported in Tobago?

2006-05-25 Thread Volker Weber
Sean,

i read some threads some months ago, but i don't remember a cogent
reason for forceId, except the use of pre existing scripts with hard
coded ids.

And maybe the IE css problem, which i was not aware before.

Maybe someone can point me to something i oversight.


Regards,
  Volker

Sean Schofield wrote:
 @Volker:
 
 Please see the myfaces archives for some lengthy discussions on why
 forceId is necessary for many developers (some of those reasons have
 been mentioned in this thread already.)  Maybe we won't support it in
 Tobago but that doesn't mean that its not a good idea.
 
 Sean
 
 On 5/25/06, John [EMAIL PROTECTED] wrote:
 
 Then if forceId is not supported, how do you use pre-existing javascript
 methods that need to be passed an id, since the html Ids are dynamically
 generated and fully qualified.

 -Original Message-
 From: Volker Weber [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 8:28 AM
 To: MyFaces Discussion
 Subject: Re: forceId not supported in Tobago?

 Just another reason to avoid the IE ;-)

 There is no need for css things in tobago, the theming does this for
 you.


 Regards,
   Volker

 Jeff Bischoff wrote:
  because you can't escape the ':' symbol in IE CSS. So you run into
  trouble with CSS, and potentially make things harder in javascript
 too.
 
  Volker Weber wrote:
 
  Hi John,
 
  yes, thats correct. And i still can't see any good reason to need it.
 
  What is the problem having fully-qualified ids in generated html?
  You have still full controll over the generated ids by assigning a id

  to each namingContainer component tag.
 
  Tobago tags with UIComponents implementing NamingContainer are:
sheet, form, page, popup, tree and treeListbox.
 
  IMHO using forceId will introduce more problems than it solves.
 
 
  Regards,
Volker
 
  John wrote:
 
  Is this correct - has some other method been chosen to ensure that
  ids are not fully-qualified in the generated HTML?
 
  John
 
 
 
 
 

 -- 
 Don't answer to From: address!
 Mail to this account are droped if not recieved via mailinglist.
 To contact me direct create the mail address by concatenating my
 forename to my senders domain.


 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Tobago sheets don't gridLayout with other components?

2006-05-27 Thread Volker Weber
Hi John,

i never observed such a problem, but i can't try it out before Monday.
Can you post some example code?


Regards,
  Volker

John wrote:
 It seems that sheets don't participate in a gridLayout like normal
 components.
 When a sheet is involved (even when wrapped in a cell), it seems to
 break the gridLayout and the components (including the sheet) are layed
 out as if no layout existed.
  
 John
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Tobago sheets don't gridLayout with other components?

2006-05-29 Thread Volker Weber
Hi John,

just tested it out, layouting works well for sheet.

you have two errors and one problem on your page: see inline

John wrote:
 This is the code that exhibits the behavior:
 
 It should layout like: 
 X X
 X X   (both Xs are the sheets span)
 
 But it lays out like:
 X
 X
 X
 With both inputs being the same height as the sheet.
 


 t:panel id=whitelistPanel1
   f:facet name=name=layout

error 1: should be: f:facet name=layout


 t:gridLayout columns=1*;1* rows=fixed;fixed/

problem fixed is not defined for sheet, so you will get theme default
fixedHeight which is e.g in speyside 20px for the sheet try fixed;1*
or set sheet height in px e.g. fixed;100px

   /f:facet
   tx:in label=New Sender value=#{whitelist.newSender}/
   tx:in label=New Recipient value=#{whitelist.newRecipient}/
   t:cell spanY=2

error 2: should be: spanX

 t:sheet value=#{whitelist.entriesList} id=whitelistSheet
 columns=3*;3* var=whitelistRec state=#{whitelist.selectedEntries}
 showPageRange=right pagingLength=7
   t:column label=Sender id=From sortable=true
 t:out value=#{whitelistRec.sender}/
   /t:column
   t:column label=Recipient id=To sortable=false
 align=center
 t:out value=#{whitelistRec.recipient}/
   /t:column
 /t:sheet
   /t:cell
 /t:panel


Regards,
  Volker

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Can tobago and tomahawk layout rendering work together?

2006-06-04 Thread Volker Weber
No, it's not (yet) possible, maybe (but not sure) in the future.

http://myfaces.apache.org/tobago/faq.html#tobago/myfaces%20extension

The error below is because tobago did not find a renderer for
org.apache.myfaces.JSCookMenuRenderer in the resourcePath.


Regards,
  Volker

Cory Showers wrote:
 I'm not sure if this has been answered yet but I'm trying to use the best
 of both worlds from tobago and tomahawk.  I want to use tomahawk cookMenu
 and tobago toolbar and I am having problems.  Even if I dont have tobago
 code in my jsp and just tomahawk code I get an error.  Both tabago and
 cookmenu code by themselves work fine... but when they are joined i have
 errors.  The error is this?
 
 
 21:51:18,390 ERROR [ResourceManagerImpl] Path not found, and no fallback.
 Using empty string.
 resourceDirs = '[org/apache/myfaces/tobago/renderkit]' contentType = 'html'
 theme = 'speyside' browser = 'msie_6_0' subDir = 'tag' name = '
 org.apache.myfaces.JSCookMenuRenderer' suffix = '' key = 'null'
 21:51:18,390 ERROR [ResourceManagerImpl] name = '
 org.apache.myfaces.JSCookMenuRenderer' clientProperties =
 'html/speyside/msie_6_0'
 java.lang.NullPointerException
 at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(
 ResourceManagerImpl.java:392)
 at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(
 TobagoRenderKit.java:53)
 at javax.faces.component.UIComponentBase.getRenderer (UIComponentBase.java
 :744)

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Can I use a div component in between two sets of tc:page tags in one tobago jsp page?

2006-06-08 Thread Volker Weber

Hi Cory,

no, you can't use two tc:page in the same page. tc:page is the outher
container which renders the start and end of a page and do all
initialization eg. in html the
   html
   head
   link ...
   script ...
   /head
   body
and
   /body
   /html

you can use tobago for the page and a tc:panel with f:verbatim to
render your html inside the tobago panel. like this:

   tc:panelf:verbatim
 div style=height: 600px; width: 1250; overflow: auto
 img src=images/map.jpg /
 /div
   /f:verbatim/tc:panel

regards,
 volker

2006/6/7, Showers, Cory R [EMAIL PROTECTED]:





I am trying to use the Tobago and I am having a problem with using the div
tag.  Tobago doesn't have a div component so I'm using the html one.  My
problem is trying to use the div component in between tabago tc:page tags.
 Whats happening is when I create the second tc:page at the bottom with my
menu at the top just disappears.   The box and toolbars are displayed even
the menu bar but the labels for the menu bar go away.  When I remove the
page tag at the bottom the labels for my menu appears again.  Can you use
two sets of tc:page tags in the same page?  Is there some conflict of
component that's happening?



The reason for this is because I want to use Tobago components at the top of
the page and at the bottom but not in the middle so the code looks like
this:



***



%@ taglib uri=http://myfaces.apache.org/tobago/component;
prefix=tc %

%@ taglib uri=http://myfaces.apache.org/tobago/extension;
prefix=tx %

%@ taglib uri=http://myfaces.apache.org/tomahawk;
prefix=t%

%@ taglib uri=http://java.sun.com/jsf/core; prefix=f %





[EMAIL PROTECTED] file=inc/head.inc%

html

body

f:view

  tc:page width=1250px

   f:facet name=layout

  tc:gridLayout  columns=1* rows=1*/

/f:facet



  tc:panel id=pageToolbar 

  f:facet name=layout

tc:gridLayout rows=fixed  columns=1* id=pageToolbarLayout/

  /f:facet



tc:box label=toolbar id=boxToolbar 



  f:facet name=layout

tc:gridLayout rows=fixed columns=1* id=boxToolbarLayout/

  /f:facet



  f:facet name=toolBar

  tc:toolBar

 tc:toolBarCommand id=gjhgjh action=overview/toolbar



label=zoom out

image=images/ZoomOut24.gif /







 tc:toolBarCommand id=imageButton action=overview/toolbar

label=zoom in

I   mage=images/ZoomIn24.gif /



  /tc:toolBar

  /f:facet



  tc:menuBar 



  tc:menu label=File 



tc:menuItem  label=alert 1 /



  /tc:menu

  tc:menu label=View



tc:menuItem  label=alert 1 /



  /tc:menu

   tc:menu label=Tools



tc:menuItem  label=alert 1 /



  /tc:menu

/tc:menuBar

 /tc:box

/tc:panel

  /tc:page



div style=height: 600px; width: 1250; overflow: auto

  img src=images/map.jpg /

/div





   tc:page width=1250px height=300

  f:facet name=layout

 tc:gridLayout  columns=1* rows=1*/

   /f:facet



  tc:panel id=pageToolbar 

 f:facet name=layout

   tc:gridLayout rows=fixed  columns=1*;1*
id=pageToolbarLayout/

 /f:facet



 tc:box label=Emergency Response id=response /tc:box

tc:box label=Closed Control id=conto/tc:box

 /tc:panel



  /tc:page

/f:view



At the bottom

/body

/html

**



It would be wonderful if there was a way to use the div tag within a
tc:page layout but when using div inside a cell layout the image would not
show.  Or when I try to expand the cell to the size that I want and use the
tc:image it  would only compress the image to that size and not leave the
image with its original size.  The div tag gives me the ability to have a
viewable area with scroll bars and to the size I want.





Cory


Re: Anything for tobago like Simple for tomahawk

2006-06-08 Thread Volker Weber

Hi,

you can fetch the war file for the demo at
 http://tobago.atanion.net/tobago-example-demo/
from
 http://tobago.atanion.net/tobago-example-demo.war

regards,

 Volker

2006/6/8, sumanta [EMAIL PROTECTED]:


Can anyone please provide me with the location of the war file that contains
the demo of tobago components? I want to run it locally, that is like
simple of tomahawk.
Thanks
--
View this message in context: 
http://www.nabble.com/Anything-for-tobago-like-%22Simple%22-for-tomahawk-t1752958.html#a4766000
Sent from the MyFaces - Users forum at Nabble.com.




Re: How can I display radio buttons in 2 columns?

2006-06-14 Thread Volker Weber

Hi,

see
 http://myfaces.apache.org/tomahawk/tlddoc/t/radio.html

there should be an example in simple.war

regards,

   Volker


2006/6/14, Paul Spencer [EMAIL PROTECTED]:

Fintan,
Visually is it is the same concept, but how do I implement it with with
radio buttons?

I have seen references to the layout spread, but I have not seen an
example of it's use. So I am not sure if this is the solution.

BTW the Newspaper Table has been deprecated.

Paul Spencer


Conway. Fintan (IT Solutions) wrote:
 Hi Paul,

 Would the Newspaper Table component work?
 http://myfaces.apache.org/tomahawk/newspaperTable.html

 Regards,

 Fintan

 -Original Message-
 From: Paul Spencer [mailto:[EMAIL PROTECTED]
 Sent: 13 June 2006 17:57
 To: MyFaces Discussion
 Subject: How can I display radio buttons in 2 columns?


 I would like to display a long list of radio buttons in 3 columns?

 Paul Spencer


 * ** *** ** * ** *** ** * ** *** ** *
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed.
 Any views or opinions presented are solely those of the author, and do not 
necessarily  represent those of ESB.
 If you have received this email in error please notify the sender.

 Although ESB scans e-mail and attachments for viruses, it does not guarantee
 that either are virus-free and accepts no liability for any damage sustained
 as a result of viruses.

 * ** *** ** * ** *** ** * ** *** ** *






Re: f:converterDateTime doesn't convert properly

2006-06-20 Thread Volker Weber

Hi,

see this thread for more info:
http://www.mail-archive.com/users%40myfaces.apache.org/msg21412.html

regards,
 Volker

2006/6/20, Susumu Majima [EMAIL PROTECTED]:

I use JBOSS/Seam that includes Myface1.1.1.

When I try to show time it isn't shown properly.

the code snipped is below

h:outputText value =#{schedule0.sch_start
f:convertDateTime pattern HH:mm/
/h:outputText

If actual data is 9:00 then shown date is 0:00.

I'm in Japan so the shown time is GMT time?

Is there any good way to  correct this problem or work around?

Regards,

Susumu Majima






Re: selectonemenuitem problems Value is not a valid option

2006-07-10 Thread Volker Weber

Hi,

the value of f:selectItems must be a array of SelectItem.

you shoud have:

public SelectItem[] getHosts() {
...
}

regards,
 Volker

2006/7/10, sarma [EMAIL PROTECTED]:


Hi,
   I am working with two selectOneListBox  in jsf
   If I selected one item in first list box the corresponding values(from
the database (setting that values to preparedstatement))
must displayed in second list box
   For that I used value change listener .
   When I am submitting this form   I  am getting an error

 cpuids: Value is not a valid option.

   This is my code.
This is jsp code.

 h:outputText value=SelectHOST   //th
   h:panelGroup
 h:selectOneMenu id=hostids
value=#{HRselforeachcpuanduser.host}
  
valueChangeListener=#{HRselforeachcpuanduser.hostSelection}
onchange=submit();immediate=true required=true
 f:selectItem itemValue= itemLabel=/
 f:selectItems 
value=#{HRselforeachcpuanduser.hosts}/
   /h:selectOneMenu
  h:message for=hostids style=color:red/
 /h:panelGroup br
 h:outputText value=SelectCPU /
 h:panelGroup
   h:selectOneMenu id=cpuids 
value=#{HRselforeachcpuanduser.cpuid} 
   f:selectItems value=#{HRselforeachcpuanduser.cpuids}/
   /h:selectOneMenu
   h:message for=cpuids style=color:red/
/h:panelGroup


// this is backing bean code

Corresponding java code
// this is for value change listener

public void hostSelection(ValueChangeEvent e) {
  FacesContext context = FacesContext.getCurrentInstance();
  hostid=(String) e.getNewValue();
  getCpuids();
  context.renderResponse();
 }
//this is for  host select

public Map getHosts(){
try{
  openConnection();
  selhostnames=new HashMap();
  String str=select distinct hostid from  system_cpu;
  st=con.createStatement();
  rs=st.executeQuery(str);

  while(rs.next()){
hostname=rs.getString(hostid);
System.out.println(hostname);
selhostnames.put(hostname,hostname);
  }
  return selhostnames;
}

public String getHost(){
return hostselected;
  }
  public void setHost(String hostselected){
this.hostselected = hostselected;
  }

//this is for  cpu  selection
public Map getCpuids(){
   try{

 if(hostid==null){
 System.out.println(if it is null);  // imp  note
 return selcpunames;
 }
  openConnection();
  String str=select distinct cpuid from system_cpu where hostid=?;
  System.out.println(setting cpuids from host);
  ps=con.prepareStatement(str);
  ps.setString(1,hostid);
  ps.execute();
  rs=ps.getResultSet();
  while(rs.next()){
cpuname=rs.getString(cpuid);
System.out.println(cpuname);
selcpunames.put(cpuname,cpuname);
  }
  return selcpunames;
   }


public void setCpuid(String cpuid){
  this.cpuid=cpuid;
}
public String getCpuid(){

  return cpuid;
}



When I am running
If its  null//in tomcat

And

cpuids: Value is not a valid option.

What is the problem with my code please tell  and  what to change

With regards
Shannu sarma
--
View this message in context: 
http://www.nabble.com/selectonemenuitem-problems--Value-is-not-a-valid-option-tf1917733.html#a5249864
Sent from the MyFaces - Users forum at Nabble.com.




Re: [ myFaces - Tobago ] - Some instances of IE just don't work

2006-07-13 Thread Volker Weber

Hi John,

just a quick guess:

in IE  7.x you need ActiveX enabled to make AJAX work.

regards,
 Volker

2006/7/12, John [EMAIL PROTECTED]:



I have our application running fine in Firefox - it includes Tobago server
side tabbing

Thought it worked in IE...

We deployed our application to customers.

Now we're getting reports back that some of their employees are using it
just fine within IE 6.
But for others, they login just fine, but doing anything within the
application (tab switching, commands, etc), just refreshes the page.

It now behaves this way for me also in IE 6.
The funny thing is that while investigating this, the version of Windows nor
the version of IE consistently produces the behavior. (Two exactly same
versions of IE 6 on the same version of Windows - one works one doesn't)

One anomalies I noticed.
We have a Tobago sheet that is populated.
Usually (in Firefox or IE that works), when refreshing, the selections still
remain after the refresh. Even if deleting a row, the selection remains, but
on the row that replaced the deleted row.
With this broken behavior - all selections are cleared upon refresh.

I'm totally confused...

Thanks,
John


Re: [tobago] - how to change label values dynamically?

2006-07-18 Thread Volker Weber

Hi Cory,

the label element has no value property, try innerHTML instead.

document.getElementById(selform:val1).innerHTML =
myDataKeys[0].childNodes[0].nodeValue;

regards,
 Volker

2006/7/17, Showers, Cory R [EMAIL PROTECTED]:





I am trying to change Tobago tc:label value while the web app runs.



I am doing some ajax and the label value isn't finalized until I parse the
xml files I can change tc:in values dynamically but not label.



This is what works

document.getElementById(selform:val2).value =
myDataKeys[0].childNodes[0].nodeValue;

tc:in value= id=val2/



This doesn't work

document.getElementById(selform:val1).value =
myDataKeys[0].childNodes[0].nodeValue;

tc:label value= id=val1/



Any ideas on getting the label values changed?



Cory Showers

Software Engineer

Lockheed Martin MS2

(w) 856.866.6075




Re: [Tobago] Image resizing

2013-11-20 Thread Volker Weber
Hi,

the content of the column gets the width from the sheets column attribute.
You should wrap the image into a panel:

tc:column id=barChart sortable=false align=left
  tc:panel
f:facet name =layout
  tc:gridlayout rows=16px columns=#{item.gauge.width}
/f:facet
 tc:image value=#{item.gauge.resourcePath} /
  tc:panel
/tc:column

Regards,

  Volker



2013/11/14 Abushammala, Hani (EXTERN: BERIS) 
extern.hani.abushamma...@volkswagen.de

 Hi,

 I need help to resolve a layout problem.

 In our application we display a bar chart within the sheet, but the used
 image for the chart could not be dynamically resized after migration from
 Tobago 1.0.39 to 2.0.0 alpha 1. We tried many ways to display an image
 or panel with dynamic width within the sheet, but it doesn't work, because
 the width variable could not be called from bean.


 Example:
 tc:sheet id=sheet var=item
 value=#{bean.items}
 columns=60px;60px;200px
 tc:column label=MIN
 id=min sortable=true align=center
 tc:out value=#{item.minValue} id=t_min /
 /tc:column
 tc:column label=MAX
 id=max sortable=true align=center
 tc:out value=#{item.maxValue} id=t_max /
 /tc:column
 tc:column id=barChart sortable=false align=left
 tc:image value=#{item.gauge.resourcePath}
 width=#{item.gauge.width}
 height=16 /
 /tc:column
 /tc:sheet

 Here the image will be resized automatically to 200px.

 Any ideas?



 The application details:
 tobago-core-2.0.0-alpha-1.jar
 myfaces-impl-2.1.12.jar
 myfaces-api-2.1.12.jar
 Browser: Firefox 22.0

 Regards,
 Hani



 Regards,
 Hani





-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


Re: [Tobago] Image resizing

2013-11-20 Thread Volker Weber
Hi Hani,

i can't reproduce the problem in the demo (alpha-3-SNAPSHOT).
The width and height attributes of the image works in the sheet.
I have attached a diff for the demo.

Regards,
  Volker


2013/11/20 Abushammala, Hani (EXTERN: BERIS) 
extern.hani.abushamma...@volkswagen.de

 Hi Volker,

 thanks for the hint. I tried this way already, but it doesn't work.  The
 image could be displayed with fixed width.

 Any ideas?

 Regards,
 Hani


 -Ursprüngliche Nachricht-
 Von: weber..com [mailto:weber..com] Im Auftrag von Volker
 Weber
 Gesendet: Mittwoch, 20. November 2013 09:38
 An: MyFaces Discussion
 Betreff: Re: [Tobago] Image resizing

 Hi,

 the content of the column gets the width from the sheets column attribute.
 You should wrap the image into a panel:

 tc:column id=barChart sortable=false align=left
   tc:panel
 f:facet name =layout
   tc:gridlayout rows=16px columns=#{item.gauge.width}
 /f:facet
  tc:image value=#{item.gauge.resourcePath} /
   tc:panel
 /tc:column

 Regards,

   Volker



 2013/11/14 Abushammala, Hani (EXTERN: BERIS) 
 ext.a...@de

  Hi,
 
  I need help to resolve a layout problem.
 
  In our application we display a bar chart within the sheet, but the used
  image for the chart could not be dynamically resized after migration from
  Tobago 1.0.39 to 2.0.0 alpha 1. We tried many ways to display an
 image
  or panel with dynamic width within the sheet, but it doesn't work,
 because
  the width variable could not be called from bean.
 
 
  Example:
  tc:sheet id=sheet var=item
  value=#{bean.items}
  columns=60px;60px;200px
  tc:column label=MIN
  id=min sortable=true align=center
  tc:out value=#{item.minValue} id=t_min /
  /tc:column
  tc:column label=MAX
  id=max sortable=true align=center
  tc:out value=#{item.maxValue} id=t_max /
  /tc:column
  tc:column id=barChart sortable=false align=left
  tc:image value=#{item.gauge.resourcePath}
  width=#{item.gauge.width}
  height=16 /
  /tc:column
  /tc:sheet
 
  Here the image will be resized automatically to 200px.
 
  Any ideas?
 
 
 
  The application details:
  tobago-core-2.0.0-alpha-1.jar
  myfaces-impl-2.1.12.jar
  myfaces-api-2.1.12.jar
  Browser: Firefox 22.0
 
  Regards,
  Hani
 
 
 
  Regards,
  Hani
 
 
 


 --
 inexso - information exchange solutions GmbH
 Ofener Straße 30 | 26121 Oldenburg
 www.inexso.de




-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de
Index: tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/sheet.xhtml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
+UTF-8
===
--- tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/sheet.xhtml	(revision 1543882)
+++ tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/sheet.xhtml	(revision )
@@ -127,7 +127,7 @@
 /tc:panel
 
 tc:sheet value=#{demo.solarList} id=sheet
-  columns=3*;1*;3*;3*;3*;3* var=luminary
+  columns=3*;1*;3*;3*;3*;200px;3* var=luminary
   state=#{demo.sheetState}
   showHeader=#{overviewController.sheetConfig.sheetShowHeader}
   showPagingAlways=#{overviewController.sheetConfig.showPagingAlways}
@@ -175,6 +175,9 @@
   /tc:column
   tc:column label=#{overviewBundle.solarArrayDistance} sortable=true align=right id=distance
 tc:out value=#{luminary.distance} id=t_distance/
+  /tc:column
+  tc:column label=image 
+tc:image value=image/feather-leaf.png height=16 width=100/
   /tc:column
   tc:column label=#{overviewBundle.solarArrayPeriod} sortable=true align=right id=period
 tc:out value=#{luminary.period} id=t_period/


Re: [Tobago] Image resizing

2013-11-21 Thread Volker Weber
Hi Hani,

i think this is a performance issue but i found a solution:

tc:column id=barChart sortable=false align=left
  tc:panel
f:facet name =layout
  tc:flowLayout /
/f:facet
tc:image value=#{item.gauge.resourcePath}
width=#{item.gauge.width}
   height=16 /
  tc:panel
/tc:column

this works in the demo.

Regards,
  Volker



2013/11/21 Volker Weber v.we...@inexso.de

 Hi Hani,

 i see the problem. The valueBinding for the width is evaluated only once,
 and this value is used for all rows.
 I think Udo should have a look at this. Please file a jira issue.

 Regards,
   Volker


 2013/11/21 Abushammala, Hani (EXTERN: BERIS) 
 extern.hani.abushamma...@volkswagen.de

 Hi Volker,

 try to get the image width from the bean or from the var object. The
 image will not be displayed.

 Regards,
 Hani

 Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im
 Auftrag von Volker Weber
 Gesendet: Mittwoch, 20. November 2013 18:14
 An: MyFaces Discussion
 Betreff: Re: [Tobago] Image resizing

 Hi Hani,
 i can't reproduce the problem in the demo (alpha-3-SNAPSHOT).
 The width and height attributes of the image works in the sheet.
 I have attached a diff for the demo.
 Regards,
   Volker

 2013/11/20 Abushammala, Hani (EXTERN: BERIS) 
 extern.hani.abushamma...@volkswagen.demailto:
 extern.hani.abushamma...@volkswagen.de
 Hi Volker,

 thanks for the hint. I tried this way already, but it doesn't work.  The
 image could be displayed with fixed width.

 Any ideas?

 Regards,
 Hani


 -Ursprüngliche Nachricht-
 Von: weber..com [mailto:weber..commailto:
 weber..com] Im Auftrag von Volker Weber
 Gesendet: Mittwoch, 20. November 2013 09:38
 An: MyFaces Discussion
 Betreff: Re: [Tobago] Image resizing

 Hi,

 the content of the column gets the width from the sheets column attribute.
 You should wrap the image into a panel:

 tc:column id=barChart sortable=false align=left
   tc:panel
 f:facet name =layout
   tc:gridlayout rows=16px columns=#{item.gauge.width}
 /f:facet
  tc:image value=#{item.gauge.resourcePath} /
   tc:panel
 /tc:column

 Regards,

   Volker



 2013/11/14 Abushammala, Hani (EXTERN: BERIS) 
 ext.a...@demailto:ext.a...@de

  Hi,
 
  I need help to resolve a layout problem.
 
  In our application we display a bar chart within the sheet, but the used
  image for the chart could not be dynamically resized after migration
 from
  Tobago 1.0.39 to 2.0.0 alpha 1. We tried many ways to display an
 image
  or panel with dynamic width within the sheet, but it doesn't work,
 because
  the width variable could not be called from bean.
 
 
  Example:
  tc:sheet id=sheet var=item
  value=#{bean.items}
  columns=60px;60px;200px
  tc:column label=MIN
  id=min sortable=true align=center
  tc:out value=#{item.minValue} id=t_min /
  /tc:column
  tc:column label=MAX
  id=max sortable=true align=center
  tc:out value=#{item.maxValue} id=t_max /
  /tc:column
  tc:column id=barChart sortable=false align=left
  tc:image value=#{item.gauge.resourcePath}
  width=#{item.gauge.width}
  height=16 /
  /tc:column
  /tc:sheet
 
  Here the image will be resized automatically to 200px.
 
  Any ideas?
 
 
 
  The application details:
  tobago-core-2.0.0-alpha-1.jar
  myfaces-impl-2.1.12.jar
  myfaces-api-2.1.12.jar
  Browser: Firefox 22.0
 
  Regards,
  Hani
 
 
 
  Regards,
  Hani
 
 
 


 --
 inexso - information exchange solutions GmbH
 Ofener Straße 30 | 26121 Oldenburg
 www.inexso.dehttp://www.inexso.de



 --
 inexso - information exchange solutions GmbH
 Ofener Straße 30 | 26121 Oldenburg
 www.inexso.dehttp://www.inexso.de




 --
 inexso - information exchange solutions GmbH
 Ofener Straße 30 | 26121 Oldenburg
 www.inexso.de




-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


Re: [Tobago] Image resizing

2013-11-21 Thread Volker Weber
Hi Hani,

i see the problem. The valueBinding for the width is evaluated only once,
and this value is used for all rows.
I think Udo should have a look at this. Please file a jira issue.

Regards,
  Volker


2013/11/21 Abushammala, Hani (EXTERN: BERIS) 
extern.hani.abushamma...@volkswagen.de

 Hi Volker,

 try to get the image width from the bean or from the var object. The image
 will not be displayed.

 Regards,
 Hani

 Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im
 Auftrag von Volker Weber
 Gesendet: Mittwoch, 20. November 2013 18:14
 An: MyFaces Discussion
 Betreff: Re: [Tobago] Image resizing

 Hi Hani,
 i can't reproduce the problem in the demo (alpha-3-SNAPSHOT).
 The width and height attributes of the image works in the sheet.
 I have attached a diff for the demo.
 Regards,
   Volker

 2013/11/20 Abushammala, Hani (EXTERN: BERIS) 
 extern.hani.abushamma...@volkswagen.demailto:
 extern.hani.abushamma...@volkswagen.de
 Hi Volker,

 thanks for the hint. I tried this way already, but it doesn't work.  The
 image could be displayed with fixed width.

 Any ideas?

 Regards,
 Hani


 -Ursprüngliche Nachricht-
 Von: weber..com [mailto:weber..commailto:
 weber..com] Im Auftrag von Volker Weber
 Gesendet: Mittwoch, 20. November 2013 09:38
 An: MyFaces Discussion
 Betreff: Re: [Tobago] Image resizing

 Hi,

 the content of the column gets the width from the sheets column attribute.
 You should wrap the image into a panel:

 tc:column id=barChart sortable=false align=left
   tc:panel
 f:facet name =layout
   tc:gridlayout rows=16px columns=#{item.gauge.width}
 /f:facet
  tc:image value=#{item.gauge.resourcePath} /
   tc:panel
 /tc:column

 Regards,

   Volker



 2013/11/14 Abushammala, Hani (EXTERN: BERIS) 
 ext.a...@demailto:ext.a...@de

  Hi,
 
  I need help to resolve a layout problem.
 
  In our application we display a bar chart within the sheet, but the used
  image for the chart could not be dynamically resized after migration from
  Tobago 1.0.39 to 2.0.0 alpha 1. We tried many ways to display an
 image
  or panel with dynamic width within the sheet, but it doesn't work,
 because
  the width variable could not be called from bean.
 
 
  Example:
  tc:sheet id=sheet var=item
  value=#{bean.items}
  columns=60px;60px;200px
  tc:column label=MIN
  id=min sortable=true align=center
  tc:out value=#{item.minValue} id=t_min /
  /tc:column
  tc:column label=MAX
  id=max sortable=true align=center
  tc:out value=#{item.maxValue} id=t_max /
  /tc:column
  tc:column id=barChart sortable=false align=left
  tc:image value=#{item.gauge.resourcePath}
  width=#{item.gauge.width}
  height=16 /
  /tc:column
  /tc:sheet
 
  Here the image will be resized automatically to 200px.
 
  Any ideas?
 
 
 
  The application details:
  tobago-core-2.0.0-alpha-1.jar
  myfaces-impl-2.1.12.jar
  myfaces-api-2.1.12.jar
  Browser: Firefox 22.0
 
  Regards,
  Hani
 
 
 
  Regards,
  Hani
 
 
 


 --
 inexso - information exchange solutions GmbH
 Ofener Straße 30 | 26121 Oldenburg
 www.inexso.dehttp://www.inexso.de



 --
 inexso - information exchange solutions GmbH
 Ofener Straße 30 | 26121 Oldenburg
 www.inexso.dehttp://www.inexso.de




-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


Re: [TOBAGO] Problem with building a UISheet

2014-04-23 Thread Volker Weber
Hi Michael,

the sheet iterates over a collection of objects. You need to set the sheets
value with this collection.

regards,

  Volker



2014-04-23 10:36 GMT+02:00 Michael Linke michaelli...@me.com:

 Hello!

 I'm have some problems with creating a Table. I want to create a dynamic
 table with some columns in it.

 Here is my simplified code:

 UIColumn col = (UIColumn)
 FacesContext.getCurrentInstance().getApplication().createComponent(UIColumn.COMPONENT_TYPE);
 col.setBorderLeft(Measure.valueOf(1));
 col.setBorderRight(Measure.valueOf(1));
 col.setPaddingLeft(Measure.valueOf(1));
 col.setPaddingRight(Measure.valueOf(1));
 col.setId(ID);
 col.setLabel(Label);

 UIOut element = (UIOut)
 FacesContext.getCurrentInstance().getApplication().createComponent(UIOut.COMPONENT_TYPE);
 element.setId(ID_Element);
 element.setValue(Test);

 col.getChildren().add(element);

 sheet.getChildren().add(col);
 sheet.setColumns(150px);



 The result is that I get a Table with one column (as expected) but without
 the out-Element.
 Any Ideas whats wrong?

 I'm using Tobago 1.5.10.


 Bets Regards,

 Michael




-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


Re: Distinguish if parameters are sent by POST or GET

2015-03-18 Thread Volker Weber
Hi Georg,

in ServletContext you can use HttpServletRequest.getMethod():
  ((HttpServletRequest)
FacesContext.getCurrentInstance().getExternalContext().getRequest()).getMethod()

regards,

Volker




2015-03-18 15:46 GMT+01:00 Georg Füchsle giofy...@googlemail.com:

 Hallo Max,

 Thanks for replying. My attempt did not work:

 I want distinguish GET and POST inside a PhaseListener.

 In the PhaseListener I receive the FacesContext from the PhaseEvent. I also
 tried to receive the FacesContext from static:

 public void beforePhase(PhaseEvent event)
 {
if (event.getPhaseId() == PhaseId.RESTORE_VIEW)
 {

 ExternalContext extCtx =
 event.getFacesContext().getExternalContext();

 boolean post1 = FacesContext.getCurrentInstance().isPostback();

 boolean post2 = event.getFacesContext().isPostback();

 logger.info(post1:  + post1 +- post2:  + post2);



 Called With Get:
 http://localhost:8080/TextTool/pages/start/texttool.jsf?BEDIENER=Gio
 15:41:04,609 INFO  [jsf.StartPhaseListener] (default task-60)
 *post1: false   - post2: false*

 Called with POST from a form:
 15:42:09,045 INFO  [jsf.StartPhaseListener] (default task-69) *post1:
 false   - post2: false*


 What do I do wrong?

 Gio

 2015-03-18 15:18 GMT+01:00 Max Starets max.star...@oracle.com:

  Georg,
 
  Have you tried isPostback() on FacesContext? If you are not including
 view
  state as one of the parameters, it will return false for GET requests.
 
  Max
 
 
  On 3/18/2015 9:19 AM, Georg Füchsle wrote:
 
  Hallo!
 
  Is it possible to see if a parameter read in my jsf-app was sent by post
  or
  by get?
 
  My webapp should be startet calling a starturl with some post
 parameters.
  I
  would like to forebid the use of get parameters. is it possible?
 
  thanks
 
  Gio
 
 
 




-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


Re: TRINIDAD Api/Impl release date

2016-03-31 Thread Volker Weber
Hi,

2016-03-31 6:07 GMT+02:00 Keertipati, Gopichand <
gopichand.keertip...@in.pega.com>:

> Hi,
>
>
> I am interested in Trinindad updates , I need information for some
> questions
>
> 1. What is the latest version of trinidad api / impl ?
> 2. From where can i download the latest version of trinidad api / impl
> (Please provide me the link) ?
>

http://myfaces.apache.org/trinidad/index.html
http://myfaces.apache.org/trinidad/download.html

Regards,
Volker


> 3. If Trinidad 2.1.1 is not released yet, when are you planning to release
> it ?
>
>
> Regards,
> Gopi
>
>


-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


Re: [Tobago] f:ajax inside tc:in event="keyup"

2018-08-21 Thread Volker Weber
Hi Dennis,

Am Mo., 20. Aug. 2018 um 18:50 Uhr schrieb Dennis Kieselhorst <
d...@apache.org>:

>
> I see, I'm not sure if this is really the intended behaviour.
>
> @Udo, Henning what do you think?
>
> Cheers
> Dennis
>

I'm not sure about your question, is it about the behavior of the
"onchange" event? I think this works like intended. It makes no sense to
fire this event at a text input on every keypress, even if each keypress
changes the content.

Regards,
  Volker



-- 
inexso - information exchange solutions GmbH
Ofener Straße 30 | 26121 Oldenburg
www.inexso.de


[ANNOUNCE] Apache Tobago 2.4.2 released

2020-02-17 Thread Volker Weber
The Apache MyFaces team is pleased to announce the release of Apache
Tobago 2.4.1.

Apache Tobago is a component library for JavaServer Faces (JSF) that
allows to write web-applications without the need of coding HTML, CSS
and JavaScript

Main features


Tobago 2.4.2
* Bugfixes


Please check the release notes for each version at these URLs for a full
list of the changes:

https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310273=12345177


For more information about Apache Tobago, please visit
http://myfaces.apache.org/tobago/.

Have fun,
-The MyFaces team


<    4   5   6   7   8   9