Dominik Müller

Ranch Hand
+ Follow
since Apr 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dominik Müller

The Answer on my question.

In error case: disable the default constraint and create and add a custome one

Hi There,

in my project, i implement a custome Validator (JSR303)



The Problem: the Validator invoke an external system to do the validation, which returns an important error message on failure.

The Question: How do i process a dynamic error message, generated by the validator itself, to the invoking process?

Thanks a Lot
Dominik Müller
Hi There,

i have a web application, where i create (on server side) thumbails for images. Some of them are market (in my image viewer) as "JPEG, progressive, CMYK". I searched the web for hours and try many many different approaches to rescale such images, but nothing work's.
Somebody any idea to resize this images, without loosing the color informations (and get very ugly images)?

I attach a sample image, which makes this problem.
Image.zip

Thanks a lot
Dominik-M
11 years ago
Hi There,


i implemented the ArrangeableModel as shown in the demo application ( http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=dataTable&skin=blueSky ). But i get the following strange error, while calling the page with the table:



The Problem is at this point (last line): (this is the JPADataController which is shown in the demo)


he tries to determined the EL value: "#{property}" which is used in the including "jpaColumn.xhtml".
But the ELContext can't resolve the value for this property! I debugged the application and tested other EL-Values. The "property" and "bean" values from the include-page can't be resolved, all other references (the managedbeans for example) worked well...

Any ideas? Help?


Thanks a lot
Dom


System:
Richfaces 4.0.0.Final
Hibernate 3.6.6.
Glassfish 3.1
12 years ago
JSF
Hi There,

i try to overlay two divs in vertical order.
I have one "content" area at first position and a bottom div with an footer and a background image.
I overlapped this two div's (text in the content div with fill the footer div as well):



That works as expected, but the negative position will produce an 200px-blank area at the bottom of the page (behind the footer).
Is there any chance to remove this "blank" area?
I try negative margin as another solution, but IE8 seems to have problems with it.

Thanks for any idea.
Dom
Hi There,

the problem is that it seems that on an ajax rerender of an partial area of the webpage, the containing javascript code doesn't get called again.
Is there any chance to re-execute the javascript code contained in an partial response?

Dummy Example


Ajax Call > ReRender the Formular (works) > Javascript Code doens't get called again

Somebody an idea?
Thanks a lot
Dom
12 years ago
JSF
Hi There,

i am very new to webservice stuff and i have a question about the java data mapping of called webservices.
The situation is: i have a wsdl file which i imported in to eclipse and generate all artifacts which seems necessary, invoking the webservice works fine, no problem.

Based on the wsdl file eclipse generates the webservice data structure of course, which isn't very suitable for the client i think.
So i have on the one side the webservice, with the generated data structures, which get filled if i call the webservice. On the other side i have my hand written objects.

What is the best practice to map incoming webservice structures to a custome data structure? I expected something like in JPA (Annotation Based Mapping), or do you write some glue code to map the two structures "by hand"?

Thanks a lot
Dom
12 years ago
Hi there,

so in more detail this time. I rebuild the whole project with maven. The actual version runs again without any problems in glassfish v3, but making trouble in JBOS 6.final.
Here the project details:

Packaging: One EAR, with an JAR (EJB) and WAR


Application consits of 2 simple JSF pages, one Entity and one stateless EJB

the EJB looks like this:


because i found many many posts about simliar error messages, which were forces by invalid jpa/datasource configuration, here my one:

persistence.xml


data-source (admin-console let me ping the datasource and return data-ok-status)


and here again my error:


thanks a lot to read the mass of coding and hope you can help.
Dom
13 years ago
Hi All,

i have a little test application (EAR Module, with one EJB and one WEB Module), is deploying fine on Glassfish v.3.
Now i tried to get the app running on JBoss 6 (jboss-6.0.0.Final) too, but getting always a dependcy error and i am running out of ideas to solve it:



Home somebody can help, thanks for any idea
Dom
13 years ago
Hi All,

have a problem here and i am running out of ideads to fix it.

I have a fomular with a dynamic amount of fields (based on a list from the managedbean) and i whould have editing fields for all values.
In general all works: for every element in the list i get an input element in the formular. But on submit NO VALUE will be transfered to the data objects, althought the browser post-command contains all values.
I break down my project to a very little example:

Simple ManagedBean


JSF


Somebody andy idea to solve the problem?

thanks a lot
Dominik

PS: the alternative c:forEach fix the issue in that way that the changed values will be posted to the bean, but isn't an option because of the jsf behaviour of c:forEach (changing the underlying list (or add an elemend for example) will not change the amount of shown elements)
13 years ago
JSF
Hi (after long time) again,

after some searching i found the problem with BeanValidation + JSF.
JSF does not support global class validation (ElementType.TYPE)

Have something found about the issue, that is seems, that is it because the lifecycle behaviour of JSF.
All values will be transferred seperatly from the post to the beans. So field-validation works fine, but
JSF doens't have any chance to validate the whole object.

Hibernate can do this of course when he tries to persist the object.

The solution to catch the exception doensn't work as listet. I have a typical architekt: ManagedBean -> ServiceClass (EJB) -> DAO (EJB) -> DatabaseCommit, but on ManagedBean side the only Exception i get is an:

javax.ejb.EJBException: Transaction aborted

somewhere in the stacktrace i can found the ValidationException... have you add a throws declaration to all your DAO-Methods, or how does it work in your case?

Thanks a lot
D
13 years ago
JSF
Hi All,

i have no ideas, removed ajax functions from my application for resolving the problem, but that isn't a real good solution.

To test it, i uploaded a little war file, including the sources, i hope somebody can test it and maybe find the solution.

http://rapidshare.com/files/423794519/AjaxBug.war

Thanks a lot again.
Dom
13 years ago
JSF
Hi together,

is there a chance to pass an form-attribute direct to an action method (without declaring an extra managed-bean property)?
Something like this:



calling the function, like:


Thanks a lot
Dom
13 years ago
JSF
Hi all,

facing a strange problem for some days when build up a very simple General-Detail-View. I reproduce the issue with a (even more simple) demo application.

[The Idea]
- select from a list box an item
- a detail view appears. which edit the underlaying data-object
- save the date

[The Problem]
- selecting an item from a listbox and show the detail-data with ajax-request work.
- the FIRST time after changing the item-list i edit a field from the detail-data and submit the form, the changes are not saved in the bean (and the action-method isn't invoked)
- the SECOND time (without changing the item, just edit the field again) works (model-update and action-method)
>> Problem doesn't occurs when i deactivate the ajax-change event on the listbox and make a full request

[The Code]
Simple Java Bean:


the handler



the page:


I am out of ideas, maybe someone else can test it and see my mistake .

Thanks a lot
Dom
13 years ago
JSF
Hi together,

try to build up a little application with a small plugin-concept (not enough for osgi etc.). so i use the ServiceLoad API.

In eclipse i set up a project and add 2 implementations of the services (with the needed Interface-Implementation and META-INF/Service/file) to the projects lib folder and the classpath.
TestCoding like this:



Worked fine in eclipse.

Than i build up an jar of theses files, and update the manifest file to set the correct classpath:


the programm still works, even if code some references to the load-method above (so: the classpath is set correct) But the ServiceLoader didn't recognize an Service?

Is there any Problem for the ServiceLoader to recognize Service-Implementations from the packed jar?

Hope somebody can help.
Thanks a lot
Dom
13 years ago