Win a copy of Head First Android this week in the Android forum!

Dianne Pop

+ Follow
since May 07, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dianne Pop

Thanks for your reply!

Your code looks much better and is way more readable than mine, so if I can trouble you a little more:
Unfortunately, my "src" is composed of several such packages for each case, so I need a way to coalesce several paths into one "variable", or to conditionally append more directories to the "src".

For example, for the case "one.a.1", I'd need a package "common.a", then "one.a.1","one.a.1.i","one.a.1.ii","some.other.package" - you get the picture.

Thanks again, in advance

9 years ago
What I figured out yesterday, before you answered is something like this:
(I even had a more complicated problem, with sub-packages)

the properties files specifies which "modules" to add

Is this the correct way and what you meant about <condition> ? Is there a easier way to do this, or perhaps a more elegant one? (with less code, so those reading it afterwards can comprehend what happens easier? )


Later edited to add that this approach gives me unpredictable behaviour, for example I set in my properties file only "build-b" and I still got, for some reason stuff from "a-1". Can't figure out why
9 years ago

I have a legacy ant file that I need to modify, and I hope you can help.
Currently, the source directories are defined in path elements that are later passed for compile:

I need to granularize this and specify in a properties file which packages should be used for different compile types - for example "compile1" should only compile package1 stuff, "compile2" another set of packages, and "compile" - all of them.
So something like this

Is there a way to put conditions like this?
Or maybe at the <path> level, only include the source directories based on the specified properties?

9 years ago
Unfortunately, splitting into LeftItem and RightItem would have no business meaning and it would be very confusing. I actually have several such fields, in several "parent" entities, and it could get really complicated really fast.

What I did do is remove the optional=false constraint, and it seems to work correctly now. The only problem is that I have to remember to always set the parent (Block), because the DB will not complain about it missing.

I have the exact same problem right now

Did you find a way to fix this?

I can't seem to use the mappings correctly for this case!
Hi. I'm having trouble with indexed properties. I have read the FAQ but my code has another level of nesting, which kind of messes things a bit.

The form contains an object of type Bill which contains a List of BillPart objects (with corresponding getters and setters). The user can enter a variable number of BillParts.

so the ActionForm has a

and my Bill class has the definition of the list of parts, and the method as suggested in the FAQ:

a BillPart has a name and an amount property.

In my jsp I put:

This doesn't create the appropriate name of the <input type="text"> property though. The setter of amount or name is never called.
I have tried several variations of what the <nested:text> name should be - nothing works. Other bill properties are set, but this nested ones aren't.
The generated html source doesn't look right:

It should be something like name="bill.part[0].name" or "[0].name"

By omitting the name completely, I get a source html like this:

this should work - the hierarchy looks correct (not sure about the form[0] thing, but I assume it's something standard)

But still, the setters are never called. The other setters of Bill object are called, but never the ones of BillPart object.

Any suggestions?

Thank you
11 years ago
Help please!!!
I want to change the frame size of a video during its transmission over RTP.
Using processor.getControl(trackcontrol) to modify frame size does not do anything
i would appreciate any hint, because i'm stuck on this for a long time

18 years ago
I have tried to run the examples in JMF's Solutions page, namely the AVTransmitter2 and AVReceiver2, with but I constantly get a
Cannot create the RTP Session: Can't open local data port: 42050
using a multicast address though, it surprisingly works!
Thank you
18 years ago