Am 13.06.2013 12:53, schrieb Martin Grigorov:
Hi,
On Thu, Jun 13, 2013 at 1:48 PM, Piratenvisier
hansheinrichbr...@yahoo.dewrote:
Martin thank you for your instantanious answers,
I tried the mailtemplate example changed resource.text to resource.pdf and
after some research concerning the
Set the model object (the date) behind the DateTextField to 00:00:00 JJ.MM..
François Meillet
Formation Wicket - Développement Wicket
Le 14 juin 2013 à 07:37, christoph.ma...@t-systems.com a écrit :
Hello,
how is the DatePicker binded tot he DateTextfield? How is the picked date
Do you mean it like this:
DateTextField txtDatumVon = new DateTextField(txtDatumVon, new
PatternDateConverter(HH:mm:ss dd.MM.,true));
String date = HH:mm:ss dd.MM.;
try {
txtDatumVon.setModelObject(new SimpleDateFormat(00:00:00
dd.MM.).parse(date));
} catch (ParseException e) {
I use it in tho following way:
new DateTextField(ToDay, new PropertyModelDate(ti, dateTo),
HH:mm:ss dd.MM.);
best regards
Britta Landgraf
Am 14.06.2013 09:20, schrieb christoph.ma...@t-systems.com:
Do you mean it like this:
DateTextField txtDatumVon = new DateTextField(txtDatumVon, new
What ist i and the String toDate in your code?
Mit freundlichen Grüßen
Christoph Manig
Systems Engineer
T-Systems International GmbH
Systems Integration - SC Travel, Transport Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.: +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
It depends whether your working with detached or manages entities. Are
you using OSIV?
Sven
On 06/14/2013 12:22 AM, Boris Brinza wrote:
Hello,
ok, i understand what my problem was,
I've update my code to use detachable model, quite easy refactorting.
But it only postponed my problem to model
You can define a mock with the same bean id that will override the
original bean (e.g. in a applicationContext-test.xml). This is a
spring feature.
Then load the applicationContext-test.xml after the applicationContext.xml:
@ContextConfiguration(loader = SpringockitoContextLoader.class,
locations
new PropertyModelDate(ti, dateTo) is my Modelobjekt. Replace it by your
Date-Model-Object, for example Model.of(new Date(...))
Best regards
Am 14.06.2013 10:02, schrieb christoph.ma...@t-systems.com:
What ist i and the String toDate in your code?
Mit freundlichen Grüßen
Christoph Manig
Am 13.06.2013 14:21, schrieb Nick Pratt:
Did you modify your pom.xml to include the PDF?
Inbuildresources you should have something similar to:
resource
filteringfalse/filtering
directorysrc/main/java/directory
includes
Try first to refresh your entity with entitymanagerObject.refresh(), and use
the return object for an update and then merge()
Am 14.06.2013 um 10:14 schrieb Sven Meier s...@meiers.net:
It depends whether your working with detached or manages entities. Are you
using OSIV?
Sven
On
Correct me if I'm wrong but I think as long as dbObject is still managed
code like the following should persist the changes to dbObject, i.e.
changes to dbObject will be saved once the transaction commits.
beginTX()
dbObject.setXXX();
dbObject.setYYY();
commitTX()
If dbObject is detached you will
Hello,
thanks for advices to all, still in war with jpa :-)
On 06/14/2013 01:27 PM, Evgheni Emelianov wrote:
Try first to refresh your entity with entitymanagerObject.refresh(), and use
the return object for an update and then merge()
Am 14.06.2013 um 10:14 schrieb Sven Meier s...@meiers.net:
You're right, but if you use propertymodel with dbEntity as model
object, there is no such code in your form like getModelObject().setXXX(),
or another question: where and when to start tx and commit tx?
On 06/14/2013 02:14 PM, heapifyman wrote:
Correct me if I'm wrong but I think as long as
getModelObject().setXXX()
This is what each FormComponent will do for you.
where and when to start tx and commit tx?
Easiest is to use OSIV, using Spring's filter [1] or a custom request
listener in Wicket.
Sven
[1]http://blog.smartkey.co.uk/2010/03/open-session-in-view-pattern-spring-jpa
I will try. thank you
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/reuse-Form-Panel-code-for-WizardStep-tp4659295p4659493.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To
I am able to do it with AttributeModifier.append( class, error ).
However, if I press F5, the feedback message disappears, the textbox
remains red. It seems that error stays there forever.
Did I missing something?
How does the feedback message work?
--
View this message in context:
Hi, I migrated my application from wicket 1.4.21 to 6.8.0.
In the onSubmit method of a SubmitLink, if errors are present in the
submitted values, I want to display the same page with the specified errors.
In wicket 1.4, I was doing this :
public void handleErrors() {
if
Hi!
Feedback messages are cleanup up (removed) after each request.
The attribute modified you added to the component, remains in place if
the page is stateful.
That's why the field still has the error class after a reload.
You can do a number of things to make this work, but the essence is
Hi,
I work in a user group at a large US university that uses Juniper Networks
security software to filter traffic on the borders of their campus
network. I administer a wicket web app that has been running just fine for
the last 2 years. Last Saturday, certain wicket generated URLs were not
Hi All,
I have used Wicket to develop a web app and I am having some difficulties
understanding exactly what's happening.
Basically there is a search page which have a number of search fields. When
you click the search button the same page reloads with the results in a big
table underneath the
Is there an easy way to have a DataTable column sort descending the first
time it is clicked on? The code in OrderByLink does the following:
protected SortOrder nextSortOrder(final SortOrder order)
{
// init / flip order
if (order == SortOrder.NONE)
{
return SortOrder.ASCENDING;
}
else
{
return
I am using Wicket 6.8 and have a sortable DefaultDataTable that gets its
columns programmatically.
The markup to get this table and the dynamically generated columns simple
(I've added spaces so it all shows):
wicket:panel
table wicket:id=dataTable border=0 cellpadding=1
Please upgrade to 1.4.22 first and recheck the problem.
Sven
On 06/13/2013 05:49 PM, Richard W. Adams wrote:
[Re-sending, as I noticed my previous send was an accidental forward, so
probably ended up in the wrong thread. Also adding some more info]
I have a form inside a panel. The form is
Have you read the following?
https://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html
Sven
On 06/14/2013 06:22 PM, David Solum wrote:
I am using Wicket 6.8 and have a sortable DefaultDataTable that gets its
columns programmatically.
The markup to get this table and the
Thanks for your information.
I wonder what embedded HTML Script Tag Juniper sees in the given url:
http://130.126.114.121/cgdashboard/?wicket:interface=:1:pubpan:publishersform:datatable:body:rows:2:cells:1:cell:actionlink::ILinkListener
Sven
On 06/14/2013 04:37 PM, Duane Searsmith wrote:
Wild guess: link in query parameter is suspected of injecting malicious
link into application's rendered page.
On Fri, Jun 14, 2013 at 9:41 AM, Sven Meier s...@meiers.net wrote:
Thanks for your information.
I wonder what embedded HTML Script Tag Juniper sees in the given url:
Ok I eventually made it work.
I have to use a Model for *both* the provided values, AND the selected
object (sorry, I'm a Wicket newbie).
Thus, by adding a field to the page:
public CompanyConfiguration selectedCompany;
And then:
you are right but if you trying to get the entity after detach, you get the
cashed version of this object, also you don't have the changes in the database,
even if you merge, but if you refresh your entity you get a new updated object
with all changes that were made, and the changes will be
you are right but if you trying to get the entity after detach,
Am 14.06.2013 um 14:14 schrieb heapifyman heapify...@gmail.com:
Correct me if I'm wrong but I think as long as dbObject is still managed
code like the following should persist the changes to dbObject, i.e.
changes to dbObject
I got a /Unexpected RuntimeException Last cause: Attempt to set model object
on null model of component: form:companiesList/ whenever I select an item in
my DropDownChoice.
I read somewhere that it was because there is no Model set, but there *is*
one (a LoadableDetachableModel) :
Or is there a way I can add extra post parameters to my request ?
I don't want to put my errors in my session (too much management). I would
like to add my errors to my request only for the current request (request
scope)
Is there a way I can achieve this ?
Thanks
--
View this message in
Thanks I'll try that the next time I need to override a single bean.
For now I got my entire test suite working by mocking all the beans
necessary to initialize the webapp and authenticate the user.
Took longer but I like it since I am in full control :)
~ Thank you,
Paul Bors
-Original
Thanks to both of you! I've managed to do what I liked. It's a little bit
unusual for me, but it's clean and it works.
Cheers men,
Pierre
On Tue, Jun 11, 2013 at 5:06 PM, Eric Jablow erjab...@gmail.com wrote:
ListView and its subclasses do not require the use of tables. If another
style of
Yes Sven, that is where I got the HTML I posted that gives me the Close tag
not found error.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-dynamically-add-a-hyperlink-BookmarkablePageLink-to-DefaultDataTable-that-is-rendered-as-an-ar-tp4659502p4659514.html
When I scroll down on large pages in Safari 5.1.7 (Windows) and click on
a link to open a modal window, the modal window does not display, but
the mask for the window does. I added WICKET-5224 to JIRA with a
Quickstart. It looks like the fix for WICKET-4948 is what is causing
the problem.
Bas Gooren wrote:
To only update the attribute if the component has errors, override
method isEnabled on the behavior, cast the component to a
FormComponent and return !formComponent.isValid().
And remember that you must not use isValid() in onComponentTag() to
change tag attributes. You
36 matches
Mail list logo