Java - Behaviors

I am making a website for a music group and would like to have profiles of each member.  The list of names is in a side bar on the left, and I would like the content to come up in a separate div in the middle of the page.
I am brand new to Java and the whole behavior thing, and wasn't sure what the neatest way to do this would be. I got the desired results just by using Set Text of Container and copying in the html of each person's profile, but that seems awfully messy and hard to keep updated (our members are constantly changing and the profiles need to be updated several times a year)
I have all the profiles as .html files, and was wondering if there is an easy way to just link to those when the name is clicked. So, I click on Joe Smith in the left hand list, and it calls that .html file up in the div in the center so I can see his profile.
Hopefully this makes sense, please let me know if any clarification is needed. Thanks for the help!

I am making a website for a music group and would like to have profiles of each member.  The list of names is in a side bar on the left, and I would like the content to come up in a separate div in the middle of the page.
I am brand new to Java and the whole behavior thing, and wasn't sure what the neatest way to do this would be. I got the desired results just by using Set Text of Container and copying in the html of each person's profile, but that seems awfully messy and hard to keep updated (our members are constantly changing and the profiles need to be updated several times a year)
Set Text of container is a perfectly fine way to do this.  It is JavaScript, and it does make for some messy code, but the appearance is fine, and updating would not be too difficult at all since you can copy from an HTML page and paste into the behavior's dialog panel.
I have all the profiles as .html files, and was wondering if there is an easy way to just link to those when the name is clicked. So, I click on Joe Smith in the left hand list, and it calls that .html file up in the div in the center so I can see his profile.
Yes, you can do this too.  In order to implement that scenario, you'd need to use an iframe on the page, and the source file for the iframe would be determined by the link applied to each name.
My preference would be the former method.  The downside is that your single page would contain all of the markup for each band member, so it could be a bit heavy.  The second method is more straightforward, but DW doesn't support iframes very well, so you are more on your own in that case.
Note added after reading Paula's post - she has a good idea too.  Spry might be just the ticket for this.

Similar Messages

  • Strange Java behavior

    Hi all!
    Why Java sources, written with 1.5 syntax and succefully installed and running into 11.2 DB show MAJOR=48 (means 1.4.2) in select * from all_java_classes?

    Feel silly for not posting this before. Here's the stack trace.
    java devtoolFeb 24, 2004 12:16:00 AM java.util.prefs.FileSystemPreferences$3 run
    WARNING: Could not create system preferences directory. System preferences are unusable.
    java.lang.ArrayIndexOutOfBoundsException: 1
    at javax.swing.SizeRequirements.expandedTile(SizeRequirements.java:355)
    at javax.swing.SizeRequirements.calculateTiledPositions(SizeRequirements.java:299)
    at javax.swing.SizeRequirements.calculateTiledPositions(SizeRequirements.java:246)
    at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:381)
    at java.awt.Container.layout(Container.java:1017)
    at java.awt.Container.doLayout(Container.java:1007)
    at java.awt.Container.validateTree(Container.java:1089)
    at java.awt.Container.validateTree(Container.java:1096)
    at java.awt.Container.validateTree(Container.java:1096)
    at java.awt.Container.validateTree(Container.java:1096)
    at java.awt.Container.validateTree(Container.java:1096)
    at java.awt.Container.validateTree(Container.java:1096)
    at java.awt.Container.validate(Container.java:1064)
    at java.awt.Window.pack(Window.java:433)
    at expansionPanel.pack(expansionPanel.java:50)
    at expansionPanel.initRows(expansionPanel.java:82)
    at expansionPanel.<init>(expansionPanel.java:45)
    at expansionPanel.<init>(expansionPanel.java:63)
    at devtool.getNewExpansionPanel(devtool.java:316)
    at devtool.initOtherComponents(devtool.java:121)
    at devtool.<init>(devtool.java:20)
    at devtool.main(devtool.java:342)
    Fatal error using pack() callback workaround in expansionPanel
    1

  • Problem with control hints and date formatting

    Hi,
    I have a Date attribute with a control hint 'dd.MM.yyyy' in my EO. When the user browse through the data all date values have 4 digits. But when a lazy user changes a date value to e.g. 12.12.04, the new value is stored as 12.12.0004. This is correct Java behavior.
    When I change my control hint to 'dd.MM.yy', the lazy user can enter 12.12.04, which is stored as 12.12.2004. Great, but the user want to see a 4-digit year.
    My problem is that the customer wants to enter only 2 digits for the year but the application must render the date with 4 digits.
    How can I configure ADF to solve my problem?
    Does Domains help? Is there a general switch in Java or ADF witch converts 12.12.04 to 12.12.2004?
    Any hints are welcome.
    Thanks,
    Markus

    For your 2nd problem, you can create a field of type string (create a data type which has domain STRING), which has unlimited lenght. However, you can only have 3 of these fields in your table.
    I think this will solve the # problem too.
    Regards,
    Valter Oliveira.

  • Servlet - Multithreaded unique object confusion.

    Hye there experts.
    A Servlet is a multi-threaded unique object - no doubt about this.
    My question is straight, that I am trying to understand
    When a variable is created inside any unique multi threaded object (like Servlet),
    and when it serves number of user requests(say 10) ,
    how will it create same variable name 10 times !!!
    to be more cleare....
    If I write code like below in my doGet(...) method of sevlet,
    MyClass myobj = new MyClass()
    How the Unique servlet object will understand 10 user requests with same variable name as myobj.
    I think this applies to Java behavior of unique object that is multi-threaded, as Servlet is nothing special
    than a simple Java object at the basic level.
    Kindly clarify friends, welcome any references from specs.
    Many Thanks in advance folks !!! Have a wonderful time !

    you cracked the puzzle...nice ! thanks for addressing this query all of you guys.
    Thinking at the memory level I thought variables will be declared inside object's memory and thus, I was
    a conflict to me that how number of instances with same name is possible when many threads execute it.
    So, answer to me is like you said, instances are managed at the Thread's memory scope and not inside object's
    thus, though n threads are executing, they will have their own instance of same object, no issues with
    same name ofcourse in this case.
    so, at what level thread deals this seperate copy of its own variables ? at method scope or sevlet scope ?
    looking further into memory, where are these references and scope details are maintained ?
    any other memory area inside JVM will have this Metadata of live objects ?
    stepping ahead, if I declare this variable as volatile,
    multithreading will be serious issue with dirty reads under this case, right ?
    great job again folks, welcome comments..even if I deserve any yelling at my questions, not too much pls :-)

  • JavaFX 2 in zip format?

    Is there anyway of getting JavaFX in a zip format instead of an actual installer for windows os?
    Thanks.
    Edited by: 998341 on Apr 5, 2013 11:51 AM

    TheChazm wrote:
    Thanks for the reply as I do not have admin priv. on the machine I program on so it's impossible for me to load the JDK and use JavaFX so looks like I'm just out of luck.
    Thanks again.You'd think there is a system administrator that can do the installation for you...
    You are free to install it somewhere else, zip it up and then unpack it to your locked down machine. What you'd be missing is 'default java' behavior (in other words: if you run stuff on the command prompt you'd have to add the bin directory to your system path to just be able to invoke 'java'), no browser plugins and javaw is not setup to run jars. If your aim is JavaFX then the missing browser plugin stuff might be a deal breaker for you, but you would have had the same problem if JavaFX came in just a zip file.

  • Dreamweaver CS3 & Controlling Flash Content

    I have been browsing the forums for this similar problem, and
    I've seen some that are close. Here's the deal:
    In DW8:
    I created an HTML file that had several smal (4kb) flash
    movies. I assigned the "Control Shockwave/Flash" behavior via the
    Behavior menu to play the movie on mouseover. This worked fine.
    I upgraded to CS3 and now this functionality is no longer
    working. When I assign the function, the swf files just sit there
    without any action whatsoever. Locally, the files are not working.
    I uploaded to our staging server (along with the Scripts folder)
    and the flash isn't even showing up at all.
    My gut (although I have limited experience with flash &
    java) is telling me that there is a js conflict going on with CS3.
    So, is there an update or patch that may help this situation?
    If anyone else has encountered this problem too, please reply
    back and maybe we can figure this out.
    Thanks All
    Keith

    Got the code cleaned up and the flash files are showing on
    the remote, but still there is no control via the DW
    java/behaviors.
    http://www.cftomlinson.com/PGA/g2.html
    Keith

  • A beep sound when tabbing through non editable textpane

    Hi,
    I have a form which has a Jtextpane and three buttons. TextPane is non editable and enabled. Whenever tab is pressed and focus is sent to TextPane, a beep sound is heard. I have only actionPerformed and KeyPressed methods in my form. If I make JTextPane editable, beep sound disappears. Is it default java behavior? Anyway to stop it?
    Thanks alot.

    @BPW
    Check this out
    http://talk.sonymobile.com/t5/Software-Updates/Lollipop-New-Features/m-p/955490#U955490
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • JMS Transaction and differnt behavior of Autocommit (Java, WebLogic)

    Hi all,
    Behavior of Autocommit for JMS Tranasactions is different. JMS Modules are in webLogic Server and in Backend is Oracle DB (RAC) available.
    A- autocommit is active (e.g. from Java code)
    private static final String QUEUE_CONNECTION_FACTORY_JNDI_NAME = "java:comp/env/jms/defaultQueueConnectionFactory";
    private static final String QUEUE_JNDI_NAME = "java:comp/env/jms/defaultQueue";
    final QueueConnectionFactory connectionFactory = (QueueConnectionFactory) jndiContext.lookup(QUEUE_CONNECTION_FACTORY_JNDI_NAME);
    final Queue destination = (Queue) jndiContext.lookup(QUEUE_JNDI_NAME);
    B- autocommit is NOT active (e.g. from Java code)
    private static final String QUEUE_CONNECTION_FACTORY_JNDI_NAME = "jms/QueueConnectionFactories/MYQUEUECF";
    private static final String QUEUE_JNDI_NAME = "jms/Queues/MYQUEUE";
    (That means "java:comp/env" is not defined...)
    C- Now, autocommit is active again (e.g. from Java code)
    @Resource(name = JNDINames.MYQUEUE_CONNECTIONFACTORY_NAME, mappedName = JNDINames.MYQUEUE_CONNECTIONFACTORY_JNDI_NAME)
    private QueueConnectionFactory connectionFactory;
    @Resource(name = JNDINames.MYQUEUE_NAME, mappedName = JNDINames.MYQUEUE_NAME)
    private Queue destination;
    public static final String MYQUEUE_CONNECTIONFACTORY_JNDI_NAME = "jms/QueueConnectionFactories/MYQUEUECF";
    public static final String MYQUEUE_CONNECTIONFACTORY_NAME = "jms/defaultQueueConnectionFactory";
    public static final String MYQUEUE_JNDI_NAME = "jms/Queues/MYQUEUE";
    public static final String MYQUEUE_NAME = "jms/defaultQueue";
    Can some body explain me, why the statements have different behavior?
    Regards,
    Moh

    @Resource(name = JNDINames.MYQUEUE_NAME, mappedName = JNDINames.MYQUEUE_NAME)did you intend the mappedName there to be MYQUEUE_JNDI_NAME?

  • Different button press behavior in Java 5 and 6

    Hi,
    I upgraded the Java version from 5 to 6 and recompile my GUI application. All things look good except when I press a button that I set the ContentAreaFilled as false, the behavior is different.
    I have pasted my code of creating the button below. Using the same piece of code, in Java 5, I could see the button is "lowered" when pressed. While in Java 6, it is just like pressing an icon or a lable.
    Would anyone know in Java 6, what could I do to retain the "lowered" behavior when pressing a button but I can still do setContentAreaFilled(false)?
    JButton cancelButton = new JButton("Cancel");
    cancelButton .setFocusable(false);
    cancelButton .setBackground(Color.RED);
    cancelButton .setContentAreaFilled(false);
    cancelButton .setOpaque(true);
    cancelButton .setForeground(Color.WHITE);
    cancelButton .setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED, new Color(0xFF, 0x33, 0x00), new Color(0x66, 0x00, 0x00)));
    cancelButton .setBorderPainted(true);
    cancelButton .setFont(new Font(ViewConst.DEFAULT_FONT_NAME, Font.PLAIN, 10));
    Thanks and regards,
    Scott

    Works fine for me. Don't give it a custom Border.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to override Ctrl-Click behavior in Java L&F

    On the Mac, Ctrl-Click is the popup trigger. While Java L&F designers were obviously aware of this (it is warned about in the Java Look and Feel Design Guidelines, 2nd ed, page 106). However, just two pages later (page 108), they then generically specifify that Ctrl-Click is used in lists and tables to toggle the selection.
    The implementation of the Java L&F does not appear to consider the Mac's use of Ctrl-Click and still toggles selection. If there is an additional mouse listener that shows a menu in response to the popup trigger, it will ALSO open the menu on Ctrl-Click.
    What is the best way to overide the Ctrl-Click behavior in JTable etc. to NOT do the toggle selection? Note that this is a mouse event and not a key event, so it can't be turned off or changed by the getActionMap() mechanism.
    Also, does anyone know what the "Command" modifier on the Mac (Command-Click is supposed to toggle selection on Macs) shows up as in the InputEvent (isMetaDown(), isAltGraphDown()...)?

    Try extending the JList and override the processMouseEvent(MouseEvent evt) method and show your popup menu when the user clicks the mouse while holding the CTRL key down. The code below demonstrates the same.
    import java.awt.BorderLayout;
    import java.awt.event.MouseEvent;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JOptionPane;
    import javax.swing.JScrollPane;
    import javax.swing.ListModel;
    import javax.swing.WindowConstants;
    public class Temp extends JFrame {
         public Temp() {
              super("Temp");
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              String [] items = {"One", "Two", "Three", "Four", "Five"};
              JList list = new MyList(items);
              JScrollPane scroller = new JScrollPane(list);
              getContentPane().add(scroller, BorderLayout.CENTER);
              pack();
              setVisible(true);
         class MyList extends JList {
              public MyList() {
                   super();
              public MyList(Object[] listData) {
                   super(listData);
              public MyList(Vector listData) {
                   super(listData);
              public MyList(ListModel dataModel) {
                   super(dataModel);
              protected void processMouseEvent(MouseEvent evt) {
                   System.out.println(evt.isPopupTrigger());
                   int onmask = MouseEvent.CTRL_DOWN_MASK | MouseEvent.BUTTON1_DOWN_MASK;
                   if(evt.getModifiersEx() == onmask) {
                        JOptionPane.showMessageDialog(this, "Control + click");
                   else {
                        super.processMouseEvent(evt);
         public static void main(String[] args) {
              new Temp();
    }Hope this helps
    Sai Pullabhotla

  • Communication between servlet(client behavior) and stand alone java program

    Hello all:
    I need to send a message (ascii characters sequence) from a servlet to a java program, but I'm not sure what is the best way to get it: socket, JMS or other mechanism that I don't know.
    Is the servlet who is operating how client behavior.
    Please, any comment will be appreciated, regards,
    Ulises.

    You can always start a ServerSocket on the client (kinda sounds funny, doesn't it) which will accept connections. You then open a plain old Socket on the server to connect to the client's listener. (Note, this is the reverse of a normal set-up). Once you have the connection established, you will call getOutputStream() to get a stream to write to. Likewise, you will call getInputStream() to read the data sent. You will want to investigate the java.net.* and java.io.* libraries.
    - Saish

  • SAP GUI for Java 7.10 rev 7 - strange behavior using mouse

    Hi,
      I use last revision of SAP GUI for Java 7.10 on linux and I've noticied that some mouse actions do not work as expected. I'll use describe an examples:
    (1)
    In rev.6 I simly push button on screen and move over text, text is marked and then I can use CTRL-C to copy text to clipboard.
    In rev.7 pushing button and move does nothing. I need one initial click more and then it works as expected.
    (2)
    Click to icon in an ABAP list sometimes activate another icon from screen (it seems that focus isn't moved from its previous position to new mouse cursor position).
    Because rev.7 has been released at the end of 2008, it is possible, that some dotted revision (solving these troubles) has been released, does anybody know solution?
    Thank you for some hints,
      Pavel

    Hello Pavel,
    we have not yet been aware of such issues, so a newer dotted version would likely not make a difference.
    (1) The behavior pretty much depends on the specific component you are clicking and selecting its text.
    So a specific test case identifying the component is required to investigate the issue.
    (2) Also for this case I ask to provide the exact context, even if it happens there only "sometimes".
    Please provide also information requested in [note 326558|https://service.sap.com/sap/support/notes/326558], parts 2.) and 3.)
    If you could provide all this as part of a [support message|http://service.sap.com/message] would be great.
    Best regards
    Rolf-Martin

  • Behavior of Basic Java Types

    My Dear Java Forum Readers,
    I very eager to know about what do we mean by the statement: "width of an 'integer' type should not be thought of as the 'amount of storage it consumes', but rather as the 'behavior' it defines for variables and expressions of that type". But for 'floating type variables width of type is amount of storage it consumes'.
    Thanks in advance,for those clearing my doubt.

    Well, here's another way of looking at the differences.
    o Integer types - in addition to signing consideration - have a range, which of course depends on their width. So instead of worrying about 16 bits, or 32 bits, or..., you can think thoughts like
    "Oh, this signed variable can range from -32768 to 32767".
    o Floating types also have an upper limit, mostly based on the largest exponent that can be represented. They also have an accuracy limit, based on the largest manitissa. (I thhink I h=got this last term correct.)

  • Deploy.java - weird deployJava.getJREs behavior

    Can I use deployJava.js on a machine that does not have 1.6.0_10 installed on it? I am asking because of this scenario:
    I have a couple of machines with numerous JREs (1.4.X, 1.5.X, 1.6.X) installed, but it has never had 1.6.0_10 installed on it.
    I did the following (notice the radically different return values of deployJava.getJREs().toString())
    1. deployJava.getJREs().toString() returns "1.6.0". I had expected a list of all JREs.
    2. Install 1.6.0_10.
    3. deployJava.getJREs().toString() returns the complete list of installed JREs.
    4. Remove 1.6.0_10
    5. deployJava.getJREs().toString() continues to return the complete list of JREs. I had expected it to revert to step #1 behavior.
    I am trying to make sense of this. If 1.6.0_10 is required to use these java script functions, why did the getJREs function continue to work even after I installed 1.6.0_10? Does 1.6.0_10 leave something behind in the browser that allows these functions to continue working?
    Does anyone else have experience with this?

    Hi
    I believe something does stay behind. The Deployment Toolkit plugins for your browsers don't get removed even after you uninstall 6u10. Check your firefox addons and IE addons.
    A side note: since the DT doesn't appear to need a JRE (it works pretty well even after uninstallation), why is it only distributed with the JRE? It would make a lot of sense to download only the plugin, thereby getting the functionality of 6u10 without yet having 6u10. It's not that I don't want 6u10, it just want it now! Because you can't use deployJava.installLatestJRE without the DT. At least, it works but not in a cool way. You can't use deployJava.setInstallType("kernel"), because it will only work if 6u10 is already installed. Am I just really confused? What is the purpose of these new generation plugins if you need them in order to install them?
    It doesn't help me a bit to have a customer with 1.5.0 installed to click a webstart launch button (created with deployJava.createWebstartLaunchButton). It will simply redirect him to a java install page (and use the online installer, despite having specified kernel). Then it doensn't direct him back to my jnlp, despite the code from the createWebstartLaunchButton method clearly shows that this is to be expected.
    I'm really impressed with the new functionality. It's been needed for a LONG time. But isn't it a bit chicken-egg? Better documentation would help.
    Thanks

  • Java.util.text.SimpleDateFormat.parse strange behavior

    Wow !
    if I parse "10/14/2002" I get "0/2/2003", that is, the month 14 is considered 12 (december) + 2 additional months and therefore february in the next year!!
    any idea ?
    Paolo Denti
    =============================
    public class Test {
    public static void main(String[] args) {
    java.util.Date testDate = null;
    java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("dd-MM-yyyy");
    try {
    testDate = formatter.parse("10-14-2002");
    catch (java.text.ParseException e) {
    System.out.println("Data scassata: " + e.getMessage());
    System.exit(1);
    System.out.println(testDate.toString());
    =================================
    prints "Mon Feb 10 00:00:00 CET 2003"

    Tryformatter.setLenient(false);if you do not want this behaviour.

Maybe you are looking for

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command: Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger o

  • Error maximum number of files already open error.No Other files can be opened or printed until some are closed

    Hi everyone, While opening a file in Adobe reader 10 in Windows 7,I am getting the error as "The maximum number of files are already open.No Other files can be opened or printed until some are closed." Can Anyone help or suggest a setting for this ?

  • Find.text Then apply Paragraph.Style

    Hi Everyone, Is that possible we find the text then apply the paragraph style every find text. We find [CN] then apply paragraph style "Chap_Num", Find next  [CT] apply PS "Chap_TTL" Find next [COX1] apply PS "Chap_Para". Any trick find and apply par

  • New Button : New action

    Hi , I have a form with 2 buttons (Ok and Cancel). I've added a new button (Update) with a custom action (Update)  . When i click on this button, it should execute e aservice (RFC FM). I link the output of the form to the Service Function with event

  • Can I free download excell and word with mac

    I would like to download free excell and word. I can find many offer. Are there any risk to get VIRUS? Any suggested website?